Thursday, September 27, 2007

VBScript to Map a network drive

'Script start

Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "S:", file://server/share

'Script end

Edit //server/share according to you needs. Current user should have permission to the mentioned folder

How to execute a VBScript

No comments: