pushd dir-name
pushes the current directory (%CD%
) onto the directory stack and cd
s into the directory given as parameter (dir-name
). cd
s back to that directory. pushd
is affected by whether command extensions are enabled or disabled. pushd
lists the directory names that are alread stored on the directory stack. %PROMPT%
contains a $+
, each level of pushed directories is replaced with a +
in the printed prompt in cmd.exe.