Jump to content

Recommended Posts

Posted

Hi,

I wonder how do you run an exe with parameters input

Example in batch, we have %1 %2 etc to get inputs

runme.exe <input>

Is this possible in Autoit

Thanks.

Posted

$CmdLine[1] is the first parameter (%1), $CmdLine[2] is the second (%2), and so on.

$CmdLine[0] is the parameter count, so check this first to avoid an Array boundary error.

$CmdLineRaw contains the EXE and all parameters, and is like a combination of %0 and %*.

Look in the help file for Command Line Parameters for more information.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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...