Jump to content
Sign in to follow this  

run parameters

Recommended Posts


How can you make your program support run parameters,for instance:

-silent , -whatever ect ect ect

Share this post

Link to post
Share on other sites

Using the $cmdline array.

$cmdline[0] contains the number of parameters used

$cmdline[1] = first parameter

$cmdline[x] = x parameter (...)

If $cmdline[0] = 0 Then
    MsgBox(0,"","No Parameters")
If $cmdline[1] = "-test" Then Msgbox(0,"","This is the first parameter")
Msgbox(0,"","there are a total of " & $cmdline[0] & " parameters")


Awaiting Diablo III..

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.