Map a drive while in the Command Prompt
If you have ever tried to switch to a UNC name while working with the Command Prompt, you have found that it can cause you a problem. What you need is a mapped drive to the UNC path. Using pushd, you can accomplish this. pushd will map to the last available drive (i.e. Z:) and automatically switch you to that drive mapping. Here's the syntax:
- pushd \\server\share\path
For example, \\mycompanyserver\commonfiles\project1
- popd z

Comments