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.

C# Syntax

// get accessor
String rtn = XSIUtils.Slash;

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