Use the Net Use command to map or disconnect a drive

You can use the net use command for batch files and scripts. To use the net use command to map or disconnect a drive:
•To map a network drive:
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. Type net use x: \\computer name\share name, where x: is the drive letter you want to assign to the shared resource.
• To disconnect a mapped drive:
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. Type net use x: /delete, where x: is the drive letter of the shared resource.

Comments