##################################################################### # SCRIPT: SS_SlashBack # # This script replaces slashes with backslashes in a path. It can be used in # processing paths before they are sent to the system command. (Some operating # systems recognize only backslashes and not slashes.) # # This script writes the cured path to stream output. # # The input path is passed with argument(FVA) for str variable $ospath. # # This script can be stored, and edited as needed, in a file called # C:/Scripts/SS_SlashBack.txt. The script can then be called as # # script "C:/Scripts/SS_SlashBack.txt" ospath("C:/myworkspace/myproject") # ##################################################################### # Declare arguments (FVA variables). var str ospath # Replace each instance of / to \\. while ( { sen "^/^" $ospath } > 0 ) sal "^/^" "\\" $ospath > $ospath echo $ospath