This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
BUILT-IN MATHEMATICA SYMBOL|See Also »

$PathnameSeparator

$PathnameSeparator
is a string used as a separator when full file and directory names are constructed.
  • The default value is under Windows, and elsewhere.
  • Functions such as FileNameSplit by default allow both and as separators under Windows.
The pathname separator on a Windows system:
$PathnameSeparator is used as a separator:
The pathname separator on a Windows system:
In[1]:=
Click for copyable input
Out[1]=
 
$PathnameSeparator is used as a separator:
In[1]:=
Click for copyable input
Out[1]//FullForm=
In[2]:=
Click for copyable input
Out[2]=
New in 2 | Last modified in 7