Jump to content

Recommended Posts

Posted

Hello,

I would like to run a file on my company desktop there ist a link to the file with extra parameter, where I

have no clue what they mean and how to formulate the autoit run command.

In the link find the following

Target:

"C:\Program Files (x86)\AAW\AAW Enterprise\Frontend\Bin\Fixwin.exe" /ptab .\Prog\compgap1.comp.co.lan.5 /fwown .\aaw.aacib.Frontend.Main.dll /pgm aacib/userpath "%APPDATA%\AAW\AAW Enterprise\Frontend" /auto

"C:\Program Files (x86)\AAW\AAW Enterprise\Frontend\Bin"

Could anyone tell me how to send these extra commands after

"C:\Program Files (x86)\AAW\AAW Enterprise\Frontend\Bin\Fixwin.exe"

With the autoIT Run command.

 

Thank you.

Michael

Posted (edited)
#include <AutoItConstants.au3>

$command = 'c:\x\y\z.exe /some thing blah "quotes" "' & @AppDataDir & '" and ' & @AppDataCommonDir & ' /we''re done now', "c:\working\dir", @SW_HIDE, $STDOUT_CHILD)
MsgBox(64, 0, "Will run: " & @CRLF & $command)
Local $iPID = Run($command)

; If you want to read the output:
ProcessWaitClose($iPID)
Local $sOutput = StdoutRead($iPID)
MsgBox(64, "output", $sOutput)

Hope it helps.

Edited by SadBunny
typo

Roses are FF0000, violets are 0000FF... All my base are belong to you.

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
×
×
  • Create New...