RunWait() - add parameters

kendzi picture kendzi · Nov 18, 2013 · Viewed 10.8k times · Source

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?

Answer

Xenobiologist picture Xenobiologist · Nov 18, 2013

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!