Standard Library procedure that pops adirectory from the top of a last-in, first-out directory stack.
Directories that have been pushed onto the stack are removed by the POPD procedure. The last directory pushed onto the stack is the first directory popped out of it. There is no limit to how deep directories may be stacked.
PRINTD
Display the current working directory and the directory stack.
PUSHD, 'sub1/data'
Push the current working directory onto the directory stack, and
; move to the subdirectory /sub1/data.
PRINTD
Display the current working directory and the directory stack.
; Note that the top of the stack contains the previous working
; directory.
POPD
Move to the directory at the top of the directory stack. In this case,
; you are moved back to the original working directory.
PRINTD
Display the current working directory and the directory stack.
PRINTD
Display the current working directory and the directory stack.
PUSHD, '[.sub1.data]'
Push the current working directory onto the directory stack, and
; move to the subdirectory [.sub1.data] (OpenVMS).
PRINTD
Display the current working directory and the directory stack.
; Note that the top of the stack contains the previous working
; directory.
POPD
Move to the directory at the top of the directory stack. In this case,
; you are moved back to the original working directory.
PRINTD
Display the current working directory and the directory stack.
PRINTD
Display the current working directory and the directory stack.
PUSHD, 'sub1\data'
Push the current working directory onto the directory stack, and
; move to the subdirectory \sub1\data.
PRINTD
Display the current working directory and the directory stack.
; Note that the top of the stack contains the previous working
; directory.
POPD
Move to the directory at the top of the directory stack. In this case,
; you are moved back to the original working directory.
PRINTD
Display the current working directory and the directory stack.