How would one remove a trailing \ from a variable's last position? If this was C++, I'd just check if the last character was a \ and remove it...
I tried using WordReplace:
I tried using WordReplace:
The problem I'm running into, is that if a variable holds just C:\, then it works fine (spits out C:). If the variable holds C:\Inetpub\wwwroot, it'll spit out C:\Inetpubwwwroot.code:
${WordReplace} "$R0" "\" "" "E-1" $R1
Comment