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

ParentDirectory

ParentDirectory
gives the parent of the current working directory.
ParentDirectory
gives the parent of the directory dir.
Get the parent directory of the current working directory:
Equivalent form:
Get the parent directory of the current working directory:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Equivalent form:
In[3]:=
Click for copyable input
Out[3]=
New in 2