Adds a backslash to the end of a path if there isn't one.

Syntax

NewPath = SRP_Path("AddBackslash", Path)

Parameters

ParameterDescription
PathA path without command line parameters.

Returns

The path with a backlash at the end.

Remarks

The AddBackslash service checks the end of the given path, taking whitespace into account, and returns a new path with a backslash added if necessary.

Example

Result1 = SRP_Path("AddBacklash", "C:\Path") 
Result2 = SRP_Path("AddBacklash", "C:\Path\") 

Both Result1 and Result2 will contain "C:\Path\".

See Also

RemoveBackslash, AddExtension