Microsoft DOS pushd command

Updated: 05/21/2018 by Computer Hope

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.

Pushd syntax

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

PUSHD [path | ..]

The 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 to this directory, you would use the POPD command.

Additional information