This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
[an error occurred while processing this directive] $TopDirectory

  • $TopDirectory gives the top-level directory in which Mathematica system files are installed.
  • $TopDirectory returns the full name of the directory as a string.
  • After installation on a hard disk typical values are:
  • See the Mathematica book: Section 2.11.4.
  • See also: $LaunchDirectory, $InitialDirectory, $HomeDirectory.