Jump to content

Run Windows Processes With Parameters


Guest h8er
 Share

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...