popd |
Changes back to the directory stored by pushd (see pushd later in this chapter).
popd
None.
Here's a simple example of how popd together with pushd can be used in a batch file to return to the directory in which the batch file was started:
@echo off ' Batch file to delete all .TXT files in a specified directory pushd %1 del *.txt popd
The pushd / popd buffer is cleared each time after the command is used.
pushd