Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping Problem

Status
Not open for further replies.

Yale

Programmer
Sep 30, 2004
31
US
Any reason why the same piece of code that maps a folder in another server WORKS in one environment/server and FAILS in another environment/server?

Sample code:
dim oNet
Set oNet = Server.CreateObject("WScript.Network")
oNet.MapNetworkDrive "R:", "\\nbwtr12pu\folder", False, "thisistheID", "thisisthePASSWORD"

oNet.RemoveNetworkDrive "R:"
Set oNet = Nothing
 
The obvious issue would be permissions. Does the user, "thisistheID", have the appropriate permissions on \\nbwtr12pu\folder ?
 
yes... as i've said... the same piece of code (with the same user id and same password) achieves different results in different servers... mapping is successful in server 1... mapping fails in server 2... :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top