Jump to content
Sign in to follow this  
Guest h8er

Run Windows Processes With Parameters

Recommended Posts

Guest h8er

Hi i'm a newbie of AutoIt v3.... I have a problem... i want to run a Windows process and pass parameters through the script... the process is an antivirus (F-prot)... it has some cool command line parameters... example: i want to pass through command line the file to scan.. so where can i put $CmdLine[x] command into the Run command ???

i've tried something like Run("FP-Win.exe" & $CmdLine[1], "", @SW_MINIMIZE) but doesn't work... thx for the help

Share this post


Link to post
Share on other sites
lte5000

Do you mean:

1.You want to pass a parameter to the AutoIt script and then pass that parameter to F-Prot when you launch it from the script? Then do what Larry said.

2.Or do you want to simply pass a parameter to F-Prot from within the running AutoIt script.

If you mean #2 then just do:

Run("FP-Win.exe myparameter")

Kendall

Edited by lte5000

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.