$InitialDirectory

$InitialDirectory

gives the initial directory when the current Wolfram System session was started.

Details

  • $InitialDirectory returns the full name of the directory as a string.
  • If the Wolfram System is started from a shell or command line, $InitialDirectory gives the current operating system directory.
  • If the Wolfram System is started from a menu or icon, $InitialDirectory typically gives the users home directory $HomeDirectory.

Examples

Basic Examples  (1)

Typical value of $InitialDirectory on Mac:

In[1]:=
Click for copyable input
Out[1]=

See Also

Directory  $CommandLine  $HomeDirectory  $BaseDirectory  $InstallationDirectory  $UserBaseDirectory  $RootDirectory

Tutorials

Introduced in 1996
(3.0)
| Updated in 2003
(5.0)