Preserving and Restoring the Working Directory Setting (CD command)
The original working directory can be preserved
with the PRESERVE command and
later restored with the RESTORE command.
Example
CD '/sales/data'.
PRESERVE.
CD '/commands/examples'.
RESTORE.
-
PRESERVEretains the working directory location set on the precedingCDcommand. - The second
CDcommand changes the working directory. -
RESTOREresets the working directory back to /sales/data.