Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations > Directories & Directory Operations > ResetDirectory >

ResetDirectory

ResetDirectory
resets the current working directory to its previous value.
  • Successive calls to ResetDirectory yield earlier and earlier current directories.
  • ResetDirectory removes the last element from the directory stack, and makes the second-to-last element current.
SetDirectory pushes a directory onto the DirectoryStack:
ResetDirectory pops a directory from the DirectoryStack:
SetDirectory pushes a directory onto the DirectoryStack:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
ResetDirectory pops a directory from the DirectoryStack:
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF