Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations >

AbsoluteFileName

AbsoluteFileName["name"]
gives the full absolute version of the name for a file in your filesystem.
  • AbsoluteFileName goes to your filesystem to check that the file name it returns corresponds to a file that actually exists.
  • AbsoluteFileName yields an absolute file name, with standard pathname separators appropriate for your operating system.
Find the full path to the current directory:
Reset the current directory to the previous directory:
Find the full path to a directory:
If the file cannot be found, $Failed is returned:
Find the full path to the current directory:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Reset the current directory to the previous directory:
In[3]:=
Click for copyable input
 
Find the full path to a directory:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
 
If the file cannot be found, $Failed is returned:
In[1]:=
Click for copyable input
Out[1]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team