
Alright, all you dex-heads out there. Here's a tough one.
It's easy to use "run application" to execute a batch file. Like this:
run application "", "C:\test.bat";
But what if you want to pass a parameter to the .bat file. If you were using the windows "Run" dialog box, you would enter this:
"C:\test.bat" "ParameterA"
But how does one do this with Dexterity? I've tried all combinations, with no luck. HELP!
*This post is locked for comments
I have the same question (0)Just noticed this is a resurfaced old post, but responding anyway.
Hi Ron
You should be able to pass the parameters, but just adding them to the command line, separated by spaces.
run application "", "C:\test.bat <parameter1> <parameter2>";
Regards
David