$InstallationDirectory

$InstallationDirectory
gives the toplevel directory in which your Wolfram System installation resides.

DetailsDetails

  • $InstallationDirectory returns the full name of the directory as a string.
  • Typical values are:
  • C:ProgramFilesWolframResearchMathematica10.0
    Windows
    /Applications/Mathematica.app/ContentsMacintosh
    /usr/local/Wolfram/Mathematica/10.0Linux
Introduced in 2003
(5.0)