({{, (RefLink[OperatingSystem, paclet:ref/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.}})

OpenersNotesSection(Spacer1)Details

The default setting is typically (RefLink[OperatingSystem, paclet:ref/OperatingSystem])->(RefLink[$OperatingSystem, paclet:ref/$OperatingSystem]).

Possible settings for (RefLink[OperatingSystem, paclet:ref/OperatingSystem]) are typically "Windows", "MacOSX", and "Unix".

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Obtain a file name suitable for a certain operating system:

FileNameJoin[{"a","b"}]

FileNameJoin[{"a","b"},OperatingSystem->"MacOSX"]

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

FileNameSplit["a\\b\\c",OperatingSystem->"Windows"]

FileNameSplit["a\\b\\c",OperatingSystem->"MacOSX"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FileNameSplit, paclet:ref/FileNameSplit])  ▪  (RefLink[FileNameJoin, paclet:ref/FileNameJoin])  ▪  (RefLink[FileNameTake, paclet:ref/FileNameTake])  ▪  (RefLink[FileNameDrop, paclet:ref/FileNameDrop])  ▪  (RefLink[$OperatingSystem, paclet:ref/$OperatingSystem])}})}})