pushd


pushd

Stores the name of the current directory and then changes to the specified directory (for use by the popd command earlier in this chapter).

Syntax

 pushd [   path   ..] 

Options

path

The directory to make the current directory

Examples

Store the current directory (here C:\ ) and change to C:\pub :

  pushd C:\pub  C:\pub> 

See popd to see what you can do with this.

Notes

pushd supports relative paths and accepts either a network path or a local drive letter and path. If a network path is specified, a temporary drive letter is created, and pushd then switches the current drive and directory to the specified directory on the temporary drive. popd then deletes the temporary drive letter when it is used.

See Also

popd



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net