Wednesday, October 28, 2009

Auto-map Network drives

The command lines for connecting, disconnecting and mapping the network drive are trivia once you know them.

net use X: \\192.168.10.17\www
maps X: to 192.168.10.17\www

net use /DELETE X:
removes the mapped network drive

Now I can just run this batch file .. easy!
net use /DELETE X:
net use X: \\192.168.10.17\www

No comments: