This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
[an error occurred while processing this directive] $InitialDirectory

  • $InitialDirectory gives the current directory at the time when the current Mathematica session was started.
  • $InitialDirectory returns the full name of the directory as a string.
  • See the Mathematica book: Section 2.11.4.
  • See also: Directory, $LaunchDirectory, $CommandLine.