PRODUCT |

|

|
|

|
|
|
|
|
FAQ |
|

|
|
|
|
|
|
LEARN SCRIPTING |
|

|
|
|
|
|
|
|
|
|
|
SAMPLE SCRIPTS |
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
HELP / DOCUMENTATION |
|

|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
Help Page - SS_SlashBack
( Some help pages may not display correctly in html because those help pages may have sample code in them, part of which may be mis-interpreted as html tags.
All help pages, including this help page, are available in biterScripting with the help command. )
|
|
Sample Script
SS_SlashBack
Purpose
Converts slashes in a file path to backslashes.
#####################################################################
# 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-2013, 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.
|
|