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 > $InitialDirectory >

$InitialDirectory

$InitialDirectory
gives the initial directory when the current Mathematica session was started.
  • If Mathematica is started from a shell or command line, $InitialDirectory gives the current operating system directory.
Typical value of $InitialDirectory on Windows:
Typical value of $InitialDirectory on Windows:
In[1]:=
Click for copyable input
Out[1]=
New in 3 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF