$InitialDirectory

$InitialDirectory

gives the initial directory when the current Wolfram System session was started.

Details

  • $InitialDirectory returns the full name of the directory as a string.
  • If the Wolfram System is started from a shell or command line, $InitialDirectory gives the current operating system directory.
  • If the Wolfram System is started from a menu or icon, $InitialDirectory typically gives the users home directory $HomeDirectory.

Examples

Basic Examples  (1)

Typical value of $InitialDirectory on Mac:

Wolfram Research (1996), $InitialDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$InitialDirectory.html (updated 2003).

Text

Wolfram Research (1996), $InitialDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$InitialDirectory.html (updated 2003).

CMS

Wolfram Language. 1996. "$InitialDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/$InitialDirectory.html.

APA

Wolfram Language. (1996). $InitialDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$InitialDirectory.html

BibTeX

@misc{reference.wolfram_2024_$initialdirectory, author="Wolfram Research", title="{$InitialDirectory}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/$InitialDirectory.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$initialdirectory, organization={Wolfram Research}, title={$InitialDirectory}, year={2003}, url={https://reference.wolfram.com/language/ref/$InitialDirectory.html}, note=[Accessed: 22-November-2024 ]}