StringVariable | What to convert. Can be either a value or @VarName (will upvar and read/write). |
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.
% ToForwardSlashes c:\path\to\somefile.txt
c:/path/to/somefile.txt
% ToFowardSlashes c:\another\path
c:/another/path
% set MyString c:\path\to\somefile.txt
c:\path\to\somefile.txt
% ToForwardSlashes @MyString
c:/path/to/somefile.txt