Microsoft DOS pushd command

pushd commandAbout pushd
Pushd syntax
Pushd examples

About pushd

Stores a directory or network path in memory so it can be returned to at any time.


The pushd command is an internal command that is available in the below Microsoft operating systems.

Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8
Windows 10

Pushd syntax

Stores the current directory for use by the POPD command, then changes to the specified directory.

PUSHD [path | ..]

path specifies the directory to make the current directory.

If Command Extensions are enabled the PUSHD command accepts network paths in addition to the normal drive letter and path. If a network path is specified, PUSHD creates a temporary drive letter that points to that network resource and changes the current drive and directory, using the newly defined drive letter. Temporary drive letters are allocated from Z: on down, using the first unused drive letter found.

Pushd examples

pushd ..

If this command was typed when you were at C:\Windows\System32 directory, for example, this directory would be stored. If you then wanted to return back to this directory you would use the POPD command.