Vofffka Posted May 18, 2009 Share 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 Link to comment Share on other sites More sharing options...
Mat Posted May 18, 2009 Share 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 Link to comment Share on other sites More sharing options...
Vofffka Posted May 19, 2009 Author Share Posted May 19, 2009 Thanks, MDiesel. 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