Jump to content
Sign in to follow this  
fjork_duf

Rookie question

Recommended Posts

I looked through the docs and help, but didn't come up with an answer. (I figure I probably missed it) Anyway. I am looking to convert a script to an exe (that's the easy part) However I need to have the exe accept command line parameters to it. What is the mechanism autoit has for taking command line arguments? Is there some sort of equivalent of ARGV??

Share this post


Link to post
Share on other sites

Hmm, that is hard to find in the help file.

I know it's under "AutoIt > Using AutoIt > Running Scripts" but only cause I know where to look.

The following code prints the command line arguments:

$numArgs = $CmdLine[0]

For $i = 1 to $numArgs
   MsgBox(4096, "Arg#" & $i, $CmdLine[$i])
Next

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...