$InstallationDirectory

$InstallationDirectory

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

Details

  • $InstallationDirectory returns the full name of the directory as a string.
  • Typical values are:
  • C:ProgramFilesWolframResearchMathematica11.2
    Windows
    /Applications/Mathematica.app/ContentsMacintosh
    /usr/local/Wolfram/Mathematica/11.2Linux

Examples

Basic Examples  (1)

A standard installation directory:

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

See Also

$BaseDirectory  $HomeDirectory  $InitialDirectory  $UserBaseDirectory

Tutorials

Introduced in 2003
(5.0)