I'm trying to write a batch file that will automatically map network drives upon restart of a number of workstations running Windows7, Vista, or XP.
There are lots of postings on this topic in EE and elsewhere. It appears very straightforward, although I have absolutely no prior experience with this stuff. See the following as an example: http://community.spiceworks.com/how_to/show/1487-how-to-create-a-batch-file-for-network-drive-mapping
I followed the instructions above:
1. Open notepad.
2. Typed the following: net use G:\\servername\D
3. Saved file as a .bat (NOT a .txt file)
To test it, I simply saved it on my desktop and double-clicked it to run it. I expected it to create a mapped network drive with letter designation "G". It doesn't appear that it did anything.
I've tried running it on both Windows 7 and Vista. I've also tried running it as administrator. No joy.
Ultimately, I would like this batch file to map multiple drives from all the computers in my office.
Any help would be greatly appreciated.