Sign in to follow this  
Followers 0
Vofffka

How can i run my compiled script with parameters

3 posts in this topic

#1 ·  Posted (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 by Vofffka

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thanks, MDiesel.

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  
Followers 0