$UserDocumentsDirectory

$UserDocumentsDirectory

gives your default "documents" directory.

Details

  • $UserDocumentsDirectory returns the full name of the directory as a string. Its value is generally designated by the operating system.
  • Typical values are:
  • "C:\Users\\Documents"Windows
    "~/Documents"macOS
    "~/Documents"Linux

Examples

Basic Examples  (1)

A typical default "documents" directory on macOS:

Wolfram Research (2007), $UserDocumentsDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html.

Text

Wolfram Research (2007), $UserDocumentsDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html.

CMS

Wolfram Language. 2007. "$UserDocumentsDirectory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_$userdocumentsdirectory, author="Wolfram Research", title="{$UserDocumentsDirectory}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html}", note=[Accessed: 26-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$userdocumentsdirectory, organization={Wolfram Research}, title={$UserDocumentsDirectory}, year={2007}, url={https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html}, note=[Accessed: 26-December-2024 ]}