OperatingSystem

OperatingSystem
is an option for file and related operations that specifies the type of operating system to use to determine file name and other conventions.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Obtain a file name suitable for a certain operating system:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

For some file systems, \ is a valid character for file or directory names:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »