For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Types of Data > Path Variables > File Path Separators
Publication date: 07/24/2024

File Path Separators

In JMP, the preferred file path format is the Portable Operating System Interface (POSIX), or UNIX, format with forward slashes (/) as separators. This means that you do not have to identify the current operating system in scripts run on both Windows and macOS. However, each host still accepts its native format for compatibility.

You can convert a file path format from Windows to POSIX (and vice versa) using Convert File Path(). Converting from a POSIX to a Windows path might be useful when you need to output a path to a file or to another application. The syntax is:

Convert File Path (path, <absolute|relative>, <POSIX|windows>, <base(path)>);

For example, the following script converts a POSIX path to a Windows path:

Convert File Path( "C:/users/smith", windows);

C:\users\smith

You can substitute a path variable (such as $HOME) for the path inside quotes.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).