AddSlash
Sub AddSlash($s As String) As String
Adds a trailing slash character, if it does not already exist in the specified string.
Parameters
- $s ... String expression that specifies a path or URL, with or without a trailing slash.
Example:
Dim $s
$s = AddSlash("https://www.aignes.com/folder")
' returns $s = "https://www.aignes.com/folder/"
$s = AddSlash("https://www.aignes.com/folder/")
' returns $s = "https://www.aignes.com/folder/"