Directory

Directory[]

gives the current working directory.

Details

  • Directory returns the full name of the directory as a string.

Examples

Basic Examples  (1)

Return the current working directory:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

See Also

$Path  SetDirectory  ResetDirectory  ParentDirectory  DirectoryStack  $HomeDirectory  DirectoryName  FileNames  FindFile  NotebookDirectory

Tutorials

Introduced in 1991
(2.0)