Jump to content
Sign in to follow this  

Using Autoit and the Run statement

Recommended Posts



I'd like to get this to work, but I'm having trouble with passing the parameters.

Here is the code that works:

run (@scriptDir & "\batch.bat","", @SW_HIDE

Now what I'v done is in place of the batch file. I thought there is a way to also pass parameters too.

Batch file Statements:

WinAudit.exe /r=gos /o=PDF

So here is my final statement, but it does not work, so what I'm I doing wrong?

Also how can I replace the @scriptDir, with a C:\ or C:

run (@scriptDir & "\winaudit.exe", "/r=gos /o=PDF", @SW_HIDE)



Share this post

Link to post
Share on other sites

Run("C:\winaudit.exe /r=gos /o=PDF", "", @SW_HIDE)

Edited by SerialKiller

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.