I have done a vb script to map the network drives. It works fine for me. But when I checked with a couple of other PCs, it doesn't work. Could anybody tell me why this is happening?
Here is the code:
Dim WSHNetwork Set WSHNetwork = WScript.CreateObject("WScript.Network") On Error Resume Next WSHNetwork.RemoveNetworkDrive "Q:", True WSHNetwork.RemoveNetworkdrive "P:", True WSHNetwork.MapNetworkDrive "Q:" , "\\ServerName\FolderName" Set WSHNetwork = Nothing WScript.Quit