Originally posted by Nanook: I am looking to variablize the run command and I need some help with the syntax. I need to put everything inbetween ( and ) into a variable any ideas? The double quotes are causing problems.
Run( "CSR100-20", "2", "2")
ScriptInfo = ( everything between here including double quotes and commas)
Run( ScriptInfo )
<font size="2" face="Verdana, Arial, Helvetica">Hi Nanook!
Not sure what exactly you meant by The double quotes are causing problems.
If you need a double quote within a string, just double it: </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> Var aquote = "String containing "" a quote" </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">If you want ScriptInfo to contain the script name and arguments:
I would not put all those into a string, since you end up parsing that string again
(remember Run needs each argument separately).
Just put the script name and its arguments into an array.
You will still have to code the actual Run command, though.