devxlogo

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

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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist