Mathematica > Core Language > String Manipulation > Operations on File Names > FileNameSplit >
Mathematica > Systems Interfaces & Deployment > File Operations > Operations on File Names > FileNameSplit >
Mathematica > Systems Interfaces & Deployment > File Operations > Directories & Directory Operations > Operations on File Names > FileNameSplit >

FileNameSplit

FileNameSplit
splits a file name into a list of parts.
  • FileNameSplit by default uses pathname separators and other conventions suitable for your operating system.
  • Absolute file names that begin with a pathname separator yield a list of parts that starts with .
  • Under Windows, the drive or share name is treated as the first part of the file name.
  • FileNameSplit just operates on names of files; it does not actually search for the file specified.
Split a file name into its path components:
On Windows, the share name is treated as a single unit:
Split a file name into its path components:
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