PUSHD - Save the disk drive and directory
Purpose: Save the current disk drive and directory, optionally
changing to a new drive and directory.
Format: PUSHD [path ]
path : The name of the new default drive and directory.
See also: CD, CDD, DIRS, POPD, and Directory Navigation.
Usage
PUSHD saves the current drive and directory on a "last in, first out"
directory stack. The POPD command returns to the last drive and
directory that was saved by PUSHD. You can use these commands together
to change directories, perform some work, and return to the starting
drive and directory. The DIRS command displays the contents of the
directory stack.
To save the current drive and directory, without changing directories,
use the PUSHD command by itself, with no path.
If a path is specified as part of the PUSHD command, the current drive
and directory are saved and PUSHD changes to the specified drive and
directory. If the path includes a drive letter, PUSHD changes to the
specified directory on the new drive without changing the current
directory on the original drive.
This example saves the current directory and changes to C:\WORDP\MEMOS,
then returns to the original directory:
[c:\] pushd \wordp\memos
[c:\wordp\memos] popd
[c:\]
When you use PUSHD to change to a directory on an HPFS drive, you must
quote the path name if it contains whitespace or special characters. See
File Names for additional details.
PUSHD can also change to a network drive and directory specified with a
UNC name (see File Systems for a description of UNC names).
If PUSHD cannot change to the directory you have specified it will
attempt to search the CDPATH and the extended directory search database.
You can also use wildcards in the path to force an extended directory
search. See the Directory Navigation section for complete details on
these and other directory navigation features.
Directory changes made with PUSHD are also recorded in the directory
history list and can be displayed in the directory history window.
The directory stack can hold up to 511 characters, or about 20 to 40
entries (depending on the length of the names). If you exceed this
limit, the oldest entry is removed before adding a new entry.
The /N option available in CD and CDD to disable extended directory
searches is not available in PUSHD. To disable extended searches when
using PUSHD, save the current directory with PUSHD (without parameters)
and then use CDD /N to change directories, for example:
pushd
cdd /n testdir
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs