Jump to content
Sign in to follow this  

Run command with additional parameter

Recommended Posts


I am new to AutoIt - trying to automate Launch and Sign-In feature of a Windows based application. I looked up in the shortcut info to find the exact executable - the target is "C:\Program Files\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx. I tried executing the following command: Run("C:\Program Files\Digi\DigiTable\bin\Digi.exe") but this did not do anything - it ran and stopped, and no window was launched. I also tried ShellExecute() but in vain.

Is there something I am missing?

Early help would be highly appreciate.



Share this post

Link to post
Share on other sites

It looks as though that domain parameter is needed. Have you already tried running the following?

Run('"C:\Program Files\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx')

or if you want to be clever...

Run('"'&@ProgramFilesDir&'\Digi\DigiTable\bin\Digi.exe" --domain F0399437-FD0C-4A48-B101-xxxxxxxxxxxx')
Edited by Lococobra

Share this post

Link to post
Share on other sites

Thanks guys but it doesn't work with any of the suggested commands. I get the following when I execute the command but the app doesn't launch.

>Exit code: 0 Time: 0.114

Share this post

Link to post
Share on other sites

if you can create a working .lnk file that will run it correctly, then you can do something like this:

$array=FileGetShortcut("C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\Prince1.lnk")
Run($array[0] & " " &$array[2],$array[1])

[0]|C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\DOSBox.exe

[1]|C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74

[2]|-conf "C:\Program Files (x86)\Prince of Persia 1 & 2\DOSBox-0.74\dosbox.conf" "C:\Program Files (x86)\Prince of Persia 1 & 2\prince\prince.exe"



My Android cat and mouse game

We're gonna need another Timmy!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...