POPD – Windows CMD Command

Change directory back to the path/folder most recently stored by the PUSHD command.
POPD will also remove any temporary drive maps created by PUSHD

PUSHD and POPD operate on a stack or LIFO (last in, first out) principle and so can be used multiple times.

Errorlevels

If the directory is successfully changed %ERRORLEVEL% = unchanged, typically this will be 0 but if a previous command set an errorlevel, that will be preserved (this is a bug).

If a bad switch is given %ERRORLEVEL% = 1

POPD is an internal command. If Command Extensions are disabled PUSHD and POPD will not create temporary drive letters.

You may also like...

1 Response

  1. zortilonrel says:

    Simply wanna remark on few general things, The website pattern is perfect, the subject material is real excellent. “The stars are constantly shining, but often we do not see them until the dark hours.” by Earl Riney.

Leave a Reply

Your email address will not be published.