popd


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



Windows Server 2003 in a Nutshell
Windows Server 2003 in a Nutshell
ISBN: 0596004044
EAN: 2147483647
Year: 2003
Pages: 415
Authors: Mitch Tulloch

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net