You could use a PowerPro script, named webcheck.powerpro maybe,
instead of a batch file.
MyTrigger could start a powerpro script file with this command:
"c:\pathto\powerpro\powerpro.exe" .webcheck(%1,%2,%3)
That will work if MyTrigger substitutes actual parameters
for %1 &2 %3 before sending the whole parameter to PowerPro,
which is what I assume from your message.
;----- webcheck.powerpro script ------------
local thisarg newarg1 newarg2 newarg3
for(i=1, i<=arg(0), i=i+1)
thisarg = arg(i)
thisarg = replacechars(thisarg, ?" ", ?"+")
thisarg = replacechars(thisarg, ?"a", ?"b")
thisarg = replacechars(thisarg, ?"c", ?"d")
;; edit those replacements, instead of a to b and c to d.
assign("newarg"++i, thisarg)
endfor
do("curl.exe", "webserver.rsnz.org/folderchange/"
++ newarg1 ++ ?"/" ++ newarg2 ++ ?"/" ++ newarg3)
;; Note: the "do" command above is all one line.
;--------- end of script ---------------
Note:
arg(0) returns the number of arguments passed to the script
so that For...Endfor loop will work for any amount of args.
Attention: PowerPro's Web site has moved: http://www.ppro.org
SPONSORED LINKS
| Computer monitoring software | Power pro | Computer and internet software |
| Free computer monitoring software |
YAHOO! GROUPS LINKS
- Visit your group "power-pro" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
