$UserDocumentsDirectory

$UserDocumentsDirectory
gives your default "documents" directory.

DetailsDetails

  • $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"Macintosh
    "~/Documents"Unix

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

A typical default "documents" directory on Macintosh:

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