Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / New in Version 3.x / System Interface /

$InitialDirectory

FilledSmallSquare $InitialDirectory gives the initial directory when the current Mathematica session was started.

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

FilledSmallSquare If Mathematica is started from a shell or command line, $InitialDirectory gives the current operating system directory.

FilledSmallSquare If Mathematica is started from a menu or icon, $InitialDirectory typically gives the user's home directory $HomeDirectory.

FilledSmallSquare See Section 2.12.4.

FilledSmallSquare See also: Directory, $CommandLine, $HomeDirectory, $BaseDirectory, $InstallationDirectory.

FilledSmallSquare New in Version 3; modified in 5.0.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.