vcent Posted April 15, 2009 Share Posted April 15, 2009 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. Link to comment Share on other sites More sharing options...
Skruge Posted April 15, 2009 Share Posted April 15, 2009 $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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now