Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 360
نمايش فراداده

popd

Changes back to the directory stored by pushd (see pushd later in this chapter).

Syntax

popd

Options

None.

Examples

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

Notes

The pushd/popd buffer is cleared each time after the command is used.

See Also

pushd