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 / System Interface / File System /


FilledSmallSquare $UserBaseDirectory gives the base directory in which user-specific files to be loaded by Mathematica are conventionally placed.

FilledSmallSquare $UserBaseDirectory 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 $UserBaseDirectory are:

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

FilledSmallSquare Appropriate subdirectories are automatically included on $Path.

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

FilledSmallSquare See Section 2.12.4 and Section A.8.2.

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

FilledSmallSquare New in Version 5.0.