Jump to content

Recommended Posts

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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...