$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.

BibTeX

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

BibLaTeX

@online{reference.wolfram_2021_$userdocumentsdirectory, organization={Wolfram Research}, title={$UserDocumentsDirectory}, year={2007}, url={https://reference.wolfram.com/language/ref/$UserDocumentsDirectory.html}, note=[Accessed: 23-July-2021 ]}

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