Jump to content

Run command with additional parameter


 Share

Recommended Posts

Hi,

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.

Thanks,

D

Link to comment
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
Link to comment
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"

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...