hey,
Can anyone shed a bit of light on this for me??
I am trying to map a network drive from a local admin account in windows XP. I am using the following commands
set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "Z:", "\\share\folder"
I am sure there is a need for me to give the script a user name and password In order to allow it connect to the network. but I am not sure how it is done.
Can anyone modify the above line to include this command.
Regards,
Can anyone shed a bit of light on this for me??
I am trying to map a network drive from a local admin account in windows XP. I am using the following commands
set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "Z:", "\\share\folder"
I am sure there is a need for me to give the script a user name and password In order to allow it connect to the network. but I am not sure how it is done.
Can anyone modify the above line to include this command.
Regards,