SetDirectory sets the working directory and saves the previous working directory on a stack. ResetDirectory restores the most recently saved directory.
Off[message] switches off the message; On[message] switches it on. For example: Off[ResetDirectory::dtop].
Examples
Basic Examples(1)
Evaluation of ResetDirectory[] without a corresponding SetDirectory generates a warning message and leaves the current directory unchanged: