I don't know nothing, but...
...if smtg doesn't work, just try customizing the quotes
E.g.
::run "c:\PROGRAM FILES\Siren\siren.exe";
doesn't works
but
::run """c:\PROGRAM FILES\Siren\siren.exe""";
does.
That's
::run " " " path\name.ext " " ";
If i find the explanation again i will post them too.
EDIT:
The Explanation, collected from this forum (i have an text file to store this for future investigation):
Using Quotes in Scripting
It's strongly recommended that you (double- or single-) quote your strings!
While the script engine is currently still permissive with unquoted strings (msg Hi! works)
this might not be so in the future, so you better do msg "Hi!" right away!
Here's the basic laws of quoting:
(1) Everything is either in double-quotes, or in single-quotes, or outside of any quotes.
(2) To have double-quotes inside double-quotes they must be doubled.
(3) To have single-quotes inside single-quotes they must be doubled.
(4) Variables are resolved in double-quotes and outside of any quotes, but not in single-quotes
That's also why in the examples of use below for selfilter, you have this:
http://88.191.26.34/XYwiki/index.php/Sc ... _selfilter
selfilter "readme"; //Selects all items whose name contains "readme" (eg: readme, readme.txt, !readme.now)
selfilter """readme"""; //Selects item named "readme" and only that one item
selfilter "foobar"; // pattern is foobar
selfilter '"foobar"'; // pattern is "foobar"
So here's my explanation:
1.) c:\PROGRAM FILES\Siren\siren.exe is an string with space and have to be quoted:
"c:\PROGRAM FILES\Siren\siren.exe"
DQStringDQ
2.) but the script engine removes the outer quotes, that's why double the double quotes:
""c:\PROGRAM FILES\Siren\siren.exe""
DQDQStringDQDQ
3.) since this would be interpreted now as "emptystring" + c:\PROGRAM FILES\Siren\siren.exe + "emptystring" , again double the outer quotes:
"""c:\PROGRAM FILES\Siren\siren.exe"""
DQDQDQStringDQDQDQ
Three "s means: give me one literal double quote, quasi an string of nothing but one double quote .
You can also make this whole quoting-thinggy short by
just protecting the inner double quotes with outer single quotes:
'"c:\PROGRAM FILES\Siren\siren.exe"'
SQDQStringDQSQ
Or use Quote() function:
Run quote("c:\PROGRAM FILES\Siren\siren.exe");
HTH?
