Jump to content
Sign in to follow this  
Vofffka

How can i run my compiled script with parameters

Recommended Posts

Vofffka

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
Mat

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.