Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Operations on File Names > FileNameJoin >
Mathematica > Systems Interfaces & Deployment > File Operations > Operations on File Names > FileNameJoin >
Mathematica > Systems Interfaces & Deployment > File Operations > Directories & Directory Operations > Operations on File Names > FileNameJoin >

FileNameJoin

FileNameJoin
joins the together into a file name suitable for your current operating system.
  • The can be either individual names or file paths containing pathname separators.
  • FileNameJoin gives an absolute file path beginning with a pathname separator.
  • FileNameJoin[..., OperatingSystem->"os"] yields a file name in the format for the specified operating system. Possible choices are , , and .
  • FileNameJoin just assembles a file name; it does not actually search for the file specified.
  • FileNameJoin canonicalizes the file name , making pathname separators appropriate for your operating system.
Give a system-dependent file name:
Append the file name to a path:
On Windows, the share name is treated as a single unit:
Give a system-dependent file name:
In[1]:=
Click for copyable input
Out[1]=
 
Append the file name to a path:
In[1]:=
Click for copyable input
Out[1]=
 
On Windows, the share name is treated as a single unit:
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
Format:   HTML  |  CDF