Sign in to follow this  
Followers 0
MikeS

Using Autoit and the Run statement

3 posts in this topic

Hello,

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)

Thanks,

Mike

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Edited by SerialKiller

Share this post


Link to post
Share on other sites

Works great thanks, Serialkiller

Mike

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  
Followers 0