Mapping multiple network drives from a script file
Posted on 2003-03-15
I'm coming from a Linux background, so to me this should be as easy as making a script file executable and typing ./mapmydrives
I'd like to create a simple app/script/etc which, when launched, automatically maps a series of network drives. This can be accomplished through Map Network Drive... and putting in a user/pass, but it tends to get tedious as I'm mounting 6 drives at a time. I'd like to create a series of 5 of these possible scripts so I can mount whichever chunk of drives I need (1-6...7-12...)
Through the command line, I'm able to do this one at a time with 'net use X: \\server\path\ /user:username password' successfully, so I'd hoped it would be simple to chain 6 of those commands together and run them as one script.
For reasons involving other servers, it won't work to make 5 different windows logins and 5 windows login scripts...I'm tied to using a single username for Windows. I'm not running separate domains...everything exists within a single workgroup, so the net use command seems logical to me. I'm just not certain how to create a file or .exe in Windows that would do this would significant programming. Thanks for any help.