PRODUCT






Home









Free Download








Installation Instructions





FAQ





FAQ








Ask A Question





LEARN SCRIPTING





Overview








Lesson 1








2


3


4


5








Exam





SAMPLE SCRIPTS





Computer








Internet








Administrators








Developers








Data








Miscellaneous





HELP / DOCUMENTATION





Commands








Automated Internet








Automated Editors








Sample Scripts








Precompiled Functions








System Features






  Sample Script - SS_SlashBack

( Some of the sample scripts may not be reproduced correctly in html because those scripts, especially web-related scripts, have html tags such as < tr > in their code.

For an accurate, copy-and-paste'able text version of this script, see SS_SlashBack.txt . )



#####################################################################
# 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

© 2008-2014, biterScripting.com. All rights reserved.
biterScripting, biterScript, biterBrowser, biterMobile, biterScripting.com, FVA (Forward Variable Assignment) are trademarks of biterScripting.com. Is it biterScripting-compatible ? is a service mark of biterScripting.com. Explorer, Unix, Windows are trademarks, service marks or other forms of intellectual property of their respective owners.