NAME
ToBackslashes — Take string value and return version with only backslashes.
SYNOPSIS
ToBackslashes StringVariable
DESCRIPTION
Return Value
The new path with only backslashes, no forward slashes.
Arguments
StringVariableWhat to convert into backslashes only version. Can be either a value or @VarName (will upvar and read/write).
More Info
Changes the string so that all forward slashes and double backslashes are changed to single backslashes.

Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.


For information regarding exceptions / errors, see here.
EXAMPLES
% ToBackslashes c:/some/path/to/file.txt
c:\some\path\to\file.txt
% set MyString c:/some/path/to/file.txt
c:/some/path/to/file.txt
% ToBackslashes @MyString
c:\some\path\to\file.txt
% puts $MyString
c:\some\path\to\file.txt
SEE ALSO
ToDoubleBackslashes, ToForwardSlashes
KEYWORDS
conversion, file, string, transform