RunWait() - add parameters

10,932

Solution 1

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!

Solution 2

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")

Share:
10,932
kendzi
Author by

kendzi

I am a tester developer in my company.

Updated on June 05, 2022

Comments

  • kendzi
    kendzi almost 2 years

    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?