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.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s