DIRSTACK
[/?]
/?The DIRSTACK command displays the drives and directories saved on a directory stack maintained by the command interpreter, to its standard output.
If the stack is empty, DIRSTACK will display an error message to its standard error, but will still return a zero result.