Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Intermediate
Sep 23, 2008

Map/Unmap to a Network Drive from Command Prompt in Windows

Yes, you can map/unmap a drive on the network location from the command prompt. Use the PUSHD command to create a temporary mapping to a network drive. You can also quickly disconnect this drive by using the POPD command:

PUSHD \\woodstock2\general 
Mapping the above path to a shared drive (starting from Z:) changes the command to that mapped drive.

To unmap, use the POPD command.

Srinath MS
Thanks for your registration, follow us on our social networks to keep up-to-date