Vofffka Posted May 18, 2009 Posted May 18, 2009 (edited) Hi, all.How can i run my compiled script with parameters, how to declare this variables in the script body?For example: i need to download program, that versions are changed, and also i have different licenses numbers, that i need to send in the my script.exe file as parameters:something like this:my_script.exe -d http://download.site/program.exe -l another-license-key Edited May 18, 2009 by Vofffka
Mat Posted May 18, 2009 Posted May 18, 2009 read the helpfile on Running scripts, paying attention to the use of $CmdLine[x]. This is the way to do it! When you run a script with parameters, each parameter is stored in its own string in $CmdLine. $CmdLine is utomatically declared with the global scope. Don't declare it again. The helpfile has more info. MDiesel AutoIt Project Listing
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