This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

$UserDocumentsDirectory

$UserDocumentsDirectory
gives your default "documents" directory.
  • Typical values are:
C:\DocumentsandSettings\username\MyDocuments
Windows
~/DocumentsMacintosh
~Unix
A typical default "documents" directory on Windows:
A typical default "documents" directory on Windows:
In[1]:=
Click for copyable input
Out[1]=
New in 6