I have the following batch script which is successfully mapping a few of our drives for our users:
@echo off
net use * /delete /yes
net use x: \\192.168.1.52\xrays
net use s: \\192.168.1.52\common
net use p: \\192.168.1.52\public
net use o: \\192.168.1.52\office
net use y: \\192.168.1.52\drives
EXIT
The mapped drives are taking their names from the share name themselves. However, it would be really handy if I could override the name to something more useful to the users.
I have looked at quite a few documents online with examples of the net use commands, but I can only see options such as credentials but nothing to do with the naming.
The script is being run on Windows XP and Windows 7 workstations.
Any help would be appreciated.
No comments:
Post a Comment