Skip to content

TechRepublic

  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
Resources
  • TechRepublic Premium
  • TechRepublic Academy
  • Newsletters
  • Resource Library
  • Forums
  • Sponsored
Go Premium
Popular Topics
  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
  • Project Management
  • Innovation
  • Cheat Sheets
  • Big Data
  • Tech Jobs
View All Topics
Go Premium
Microsoft

Slideshow: Quick networking mapping with PushD and PopD

By Greg Shultz May 15, 2012, 4:01 AM PDT

Image
1
of 5

Fig_A_5-12.png
Fig_A_5-12.png
Slideshow: Quick networking mapping with PushD and PopD

In Windows 7, the Map network drive command appears on the Command Bar.

In Windows 7, the Map network drive command appears on the Command Bar.

ntHave you ever needed to temporarily map a drive letter to a network location for a quick file operation while you are working from a command prompt? Of course, you can switch over to Windows Explorer and use the Map Network Drive command. While that is a viable solution, it requires multiple steps to create and then you have to perform several more steps to disconnect the network drive. This can be a pain – especially when you’re working from a Command Prompt. Fortunately, you can use a pair of often overlooked Command Line tools still available in Microsoft Windows 7, PushD and PopD, to quickly map network drives.

n

ntIn this edition of the Windows Desktop Report, I’ll show you how to PushD and PopD for temporary drive mapping. As I do, I’ll explain how these two old DOS utilities work.

n

ntnn

n

ntThe Map Network Drive command

n

ntJust for the sake of comparison, let’s begin by taking a look at all the steps involved in temporarily mapping a network drive in Windows Explorer. When you need to map a network drive from within Windows Explorer you can pull down the Tools menu and select the Map network drive command. If you are running Windows 7 with its context sensitive Command Bar, when you open Computer, the Map network drive command appears on the Command Bar.

n

ntThis Slideshow is also availabe as a post in the TechRepublic Microsoft Windows Blog.

n

ntImage by Greg Shultz for TechRepublic.

Slideshow: Quick networking mapping with PushD and PopD

If you have connected to the drive before, you can find the network path on the Folder drop down

If you have connected to the drive before, you can find the network path on the Folder drop down

ntWhen you see the Map Network Drive window you use the Drive drop down to select a drive letter. Then, you can use the Folder drop down to select a drive you’ve previously mapped or click the Browse button and use the Browse For Folder dialog box to locate the network folder that you want to map to a drive. Be sure to leave the Reconnect at logon check box unselected.

n

ntImage by Greg Shultz for TechRepublic.

Slideshow: Quick networking mapping with PushD and PopD

To disconnect, just select the icon and click OK

To disconnect, just select the icon and click OK

ntWhen you are done using the drive, you must then return to Windows Explorer, pull down the tools menu and then select the Disconnect network drive command. When you see the Disconnect Network Drive dialog box  just select the drive icon and click OK.

n

ntAs you can see using Windows Explorer’s network drive mapping feature really isn’t that complex but it does require a multitude of steps. This is especially apparent when you see how quickly the same operation can be performed using the PushD/PopD commands.

n

ntImage by Greg Shultz for TechRepublic.

Slideshow: Quick networking mapping with PushD and PopD

The PushD and PopD commands in action

The PushD and PopD commands in action

ntThe PushD/PopD commands

n

ntAs you may know, the PushD and PopD commands have been around since Windows 2000 and are quite powerful little commands that can save you quite a bit of time when you are working on the command prompt. However, they are often overlooked.

n

ntBasically, the PushD/PopD commands are used to maintain a history list of directory paths in what is called a directory stack. In addition, these commands function like the Change Directory (CD) command.

n

ntThe syntax for the PushD command is:

n

ntpushd [path]

n

ntWhen you use it, the PushD command stores the current path in the directory stack and then immediately changes to the specified path. When you use the PopD command, it retrieves the path at the top of the stack and changes to that path.

n

ntFor example, if you are currently in the C:\Users\Greg\Documents directory and you type the command:

n

ntpushd c:\users\public

n

ntThen the C:\Users\Greg\Documents path is stored in the directory stack and the current directory becomes C:\Users\Public. When you are done working in the C:\Users\Public directory, you just type:

n

ntpopd

n

ntWhen you do, the C:\Users\Greg\Documents path is retrieved from the directory stack and the current directory becomes C:\Users\Greg\Documents.

n

ntImage by Greg Shultz for TechRepublic.

Slideshow: Quick networking mapping with PushD and PopD

Mapping a network drive with the PushD and PopD commands is a piece of cake

Mapping a network drive with the PushD and PopD commands is a piece of cake

ntMapping network drives

n

ntIn addition to making it easy to change back and forth between directories, the PushD and PopD commands also work with network paths. When working with network paths, the syntax for the PushD command is:

n

ntpushd \\Server\Share\path

n

ntWhere \\Server\Share\path is the network resource to which you want to map a drive letter. As soon as you use it, the PushD command will instantly map a drive letter to the network resource and then change to that drive right in the Command Prompt window. When you’re done, just type PopD and the mapped drive letter will be disconnected and you’ll return to your original drive.

n

ntKeep in mind that, the PushD command allocates drive letters from Z: on down and will use the first unused drive letter that it finds.

n

ntImage by Greg Shultz for TechRepublic.

  • Microsoft
  • Account Information

    Share with Your Friends

    Slideshow: Quick networking mapping with PushD and PopD

    Your email has been sent

Share: Slideshow: Quick networking mapping with PushD and PopD
Image of Greg Shultz
By Greg Shultz
My first computer was a Kaypro 16 \"luggable\" running MS-DOS 2.11 which I obtained while studying computer science in 1986. After two years, I discovered that I had a knack for writing documentation and shifted my focus over to technical writing.
  • Account Information

    Contact Greg Shultz

    Your message has been sent

  • |
  • See all of Greg's content

Daily Tech Insider

If you can only read one tech story a day, this is it.

TechRepublic TechRepublic
  • TechRepublic on Facebook
  • TechRepublic on X
  • TechRepublic on LinkedIn
  • TechRepublic on YouTube
  • TechRepublic on Pinterest
  • TechRepublic RSS
Services
  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information
  • Careers
Explore
  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • Editorial Policy
  • Legal Terms
  • Privacy Policy
© 2025 TechnologyAdvice. All rights reserved.
CLOSE

Create a TechRepublic Account

Get the web's best business technology news, tutorials, reviews, trends, and analysis—in your inbox. Let's start with the basics.

Already registered? Sign In
Use Facebook
Use Linkedin

* - indicates required fields

CLOSE

Sign in to TechRepublic

Not a member? Create an account
Use Facebook
Use Linkedin

Lost your password? Request a new password

CLOSE

Reset Password

Please enter your email adress. You will receive an email message with instructions on how to reset your password.

Check your email for a password reset link. If you didn't receive an email don't forgot to check your spam folder, otherwise contact support.

Back to login
1 Finish Profile
2 Newsletter Preferences
CLOSE

Welcome. Tell us a little bit about you.

This will help us provide you with customized content.

No thanks, continue without
1 Finish Profile
2 Newsletter Preferences
CLOSE

Want to receive more TechRepublic news?

Newsletter Name
Subscribe
Daily Tech Insider
Daily Tech Insider AU
TechRepublic UK
TechRepublic News and Special Offers
TechRepublic News and Special Offers International
Executive Briefing
Innovation Insider
Project Management Insider
Microsoft Weekly
Cloud Insider
Data Insider
Developer Insider
TechRepublic Premium
Apple Weekly
Cybersecurity Insider
Google Weekly
Toggle All
No thanks, continue without

You're All Set

Thanks for signing up! Keep an eye out for a confirmation email from our team. To ensure any newsletters you subscribed to hit your inbox, make sure to add [email protected] to your contacts list.

Back to Home Page
×