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

$UserDocumentsDirectory

$UserDocumentsDirectory
gives your default "documents" directory.
  • Typical values are:
C:\DocumentsSpaceIndicatorandSpaceIndicatorSettings\username\MySpaceIndicatorDocuments
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