Sign in to follow this  
Followers 0
SleepyXtreme

run parameters

2 posts in this topic

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")
EndIf
If $cmdline[1] = "-test" Then Msgbox(0,"","This is the first parameter")
Msgbox(0,"","there are a total of " & $cmdline[0] & " parameters")

Kurt


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