PDA

View Full Version : setting up script for network (W2K)



anthony75
07-26-2002, 11:18 PM
I'm new to windows scripting. I would like to write a script that will show what server the user has logged on to. Also I would like for the script to take the my documents folder and redirect it to there home folders on the server. I alo need it to do some simple drive mappings. So I'm starting with this basic code I go from this site.


'Begin code for simplemap.vbs
'Downloaded from the Windows Scripting Guide
' http://www.winguides.com/scripting/
'Version: 1.0 (November 23, 2000)

Dim WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")

WSHNetwork.MapNetworkDrive "S:", "\\server\share"