GetPathSeparator Function

Returns the operating system-dependent directory separator used to specify file paths.

Syntax:

GetPathSeparator()

Return type:

String

Parameters:

None.

Error codes:

5 αž€αžΆαžšβ€‹αž αŸ…β€‹αž”αŸ‚αž”αž”αž‘β€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ

Example:


        Sub ExampleGetPathSeparator
            MsgBox GetPathSeparator()
        End Sub
    
note

Wiser script instructions are available from Identifying the operating system help page.


tip

β€’ ScriptForge.Platform service provides a collection of properties about the current execution environment and context, that include platform detection.

β€’ Extensive operating system name identification is available from INFO("system") Calc formula.


It is recommended to use:

ConvertFromURL function to convert a file URL to a system file name.

ConvertToURL function to convert a system file name to a file URL.

See also URL Notation

Please support us!