$UserDocumentsDirectory

$UserDocumentsDirectory
gives your default "documents" directory.

DetailsDetails

  • $UserDocumentsDirectory returns the full name of the directory as a string.
  • Typical values are:
  • C:DocumentsandSettingsusernameMyDocuments
    Windows
    ~/DocumentsMacintosh
    ~Unix

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

A typical default "documents" directory on Windows:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)