XSIUtils.Slash

Introduced

v5.0

Description

Returns a String containing a single character that represents the correct path separator character for the current platform. For example, Slash returns a forward slash ("/") for Linux and a backslash ("\") for Windows. This is useful for writing cross-platform code.

Examples

1. JScript Example

Application.LogMessage( XSIUtils.Slash ) ;

2. Python Example

Application.LogMessage( XSIUtils.Slash )

3. VBScript Example

Application.LogMessage XSIUtils.Slash

See Also

XSIUtils.BuildPath XSIUtils.ResolvePath