$UserDocumentsDirectory

$UserDocumentsDirectory
gives your default "documents" directory.

DetailsDetails

  • $UserDocumentsDirectory returns the full name of the directory as a string.
  • Typical values are:
  • C:\DocumentsandSettings\username\MyDocuments
    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]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »