Jump to content

run parameters


Recommended Posts

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..

Link to comment
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
 Share

  • Recently Browsing   0 members

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