Pushdir / popdir

#3
OH yes, also we have SETLOCAL/ENDLOCAL, which save and restore much more:

the default disk drive and directory

·the environment,

·the alias list

·the user-defined function list (not in TCC/LE)

·the special character set (command separator, escape character, parameter character, decimal separator, and thousands separator)

·the SETDOS /X setting