Reputation: 331
My AutoIt script launches another script (written in UIAutomation). So I wrote this:
RunWait("C:\AutoUIInst\Test\bin\Debug\" & "Test.exe", "","")
It works fine. But now I have to add a parameter. For example: "Test.exe -someParam"
. So i tried RunWait()
:
RunWait('"C:\AutoUIInst\Test\bin\Debug\" & "Test.exe" -someParam', "","")
That won't work. Can someone help?
Upvotes: 3
Views: 11310
Reputation: 5599
I had similar problems some time ago when running another applications from my script and I solved it by using ShellExecuteWait
. You can rewrite your call like this:
ShellExecuteWait("C:\AutoUIInst\Test\bin\Debug\Test.exe", "-someParam")
Upvotes: 4
Reputation: 2151
Maybe there is only a space missing right before the paramter.
RunWait("C:\AutoUIInst\Test\bin\Debug\Test.exe -someParam", "","")
You can also try ShellexecuteWait which also has a Parameter option!
Upvotes: 5