|
|
PUSHD
Change the current directory/folder and store the previous folder/path for use by the POPD command.
syntax PUSHD pathname key pathname - the folder to make 'current' (UNC names accepted)
For example
c:\Program Files> PUSHD c:\utils c:\utils> c:\utils> POPD c:\Program Files> c:\Program Files> PUSHD \\Server_23\MyShare\MyFolder Z:\MyFolder> Z:\MyFolder> POPD c:\Program Files>
Networks
When a UNC path is specified, PUSHD will create a temporary drive map and will
then use that new drive.
Temporary drive letters are allocated in reverse alphabetical order
so if Z: is free it will be used.
If Command Extensions are disabled the PUSHD command
will not accept a network (UNC) path.
related commands
CD
PROMPT - Display the level of the PUSHD stack
Equivalent Linux BASH commands:
export - Set an environment variable