|
|
@DIRSTACK[n] : Returns the name of the nth entry in the directory stack. The oldest is number 0. If no n parameter is specified, returns the total number of entries in the stack. The directory stack is set by calls to PUSHD / POPD.
Numeric input may be entered in either decimal format (series of digits 0-9) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).
See also: DIRS, POPD, PUSHD and Directory Navigation.
Examples:
echo %@dirstack[0]
echo %@dirstack[2]
echo %@dirstack[]