Change the current directory/folder and store the previous folder/path for use by the POPD command.
PUSHD /?
PUSHD path
CD
PROMPT - Display the level of the
PUSHD stack.
Equivalent Linux BASH commands:
export - Set an environment variable.
When a UNC path is specified, PUSHD will create a temporary drive map and will then use that new drive.
Temporary drive letters are allocated in reverse alphabetical order so if Z: is free it will be used.
If Command Extensions are disabled the PUSHD command will not accept a network (UNC) path.
c:\Program Files> PUSHD c:\utils c:\utils^\> c:\utils> POPD c:\Program Files> c:\Program Files> PUSHD \\Server_23\MyShare\MyFolder Z:\MyFolder> Z:\MyFolder> POPD c:\Program Files>
none.