Jump to content
Sign in to follow this  
dsingh

Run command with additional parameter

Recommended Posts

dsingh

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

Share this post


Link to post
Share on other sites
Lococobra

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
dsingh

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
kaotkbliss

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!

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  

×