This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / New in Version 5.0 / System Interface /

$BaseDirectory

FilledSmallSquare $BaseDirectory gives the base directory in which system-wide files to be loaded by Mathematica are conventionally placed.

FilledSmallSquare $BaseDirectory returns the full name of the directory as a string.

FilledSmallSquare Typical values are:

FilledSmallSquare The value of $UserBaseDirectory can be specified by setting the MATHEMATICA_USERBASE operating system environment variable when the Mathematica kernel is launched. It cannot be reset from inside the kernel.

FilledSmallSquare Typical subdirectories of $BaseDirectory are:

FilledSmallSquare These subdirectories are, if possible, created automatically the first time Mathematica is run.

FilledSmallSquare Appropriate subdirectories are automatically included on $Path.

FilledSmallSquare The subdirectories of $BaseDirectory are given in $Path after the corresponding ones of $UserBaseDirectory.

FilledSmallSquare See Section 2.12.4 and Section A.8.2.

FilledSmallSquare See also: $UserBaseDirectory, $InstallationDirectory, $InitialDirectory, $HomeDirectory.

FilledSmallSquare New in Version 5.0.