$InstallationDirectory

$InstallationDirectory
gives the top-level directory in which your Mathematica installation resides.

DetailsDetails

  • $InstallationDirectory returns the full name of the directory as a string.
  • Typical values are:
  • C:\ProgramFiles\WolframResearch\Mathematica\8.0
    Windows
    /Applications/Mathematica8.0.appMacintosh
    /usr/local/Wolfram/Mathematica/8.0Unix
New in 5
New to Mathematica? Find your learning path »
Have a question? Ask support »