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 \woodstock2general 

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

To unmap, use the POPD command.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

More From DevX