Name

pushd

Synopsis

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

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

                     pushd C:\pub
C:\pub>

See popd earlier in this chapter 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

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.