adhoc network drive mapping
by Able-X on Mar.24, 2008, under computers
As I’m working to consolidate the neat tips I find for a future wiki at work, here’s another neat one:
There is a feature in Windows XP and Vista that not many people know which can save you endless hours and it’s called pushd.
From the command-line if you type:
pushd \\someserver\someshare\somedirectory
Then Windows will automatically map a temporary drive to \\someserver\someshare, change to that drive, then change directory to somedirectory.
When you’re finished you can then type:
popd
Then Windows will change back to your original working directory and remove the mapped drive.
Here is an example:
C:\Temp\> pushd \\someserver\someshare\somedirectory
X:\somedirectory\> del somefile.txt
X:\somedirectory\> popd
C:\Temp\ >
Found at:
http://blog.bartholomew.id.au/2007/12/19/adhoc-mapping-of-network-drives

