SleepyXtreme Posted September 11, 2007 Share Posted September 11, 2007 How can you make your program support run parameters,for instance: -silent , -whatever ect ect ect Link to comment Share on other sites More sharing options...
_Kurt Posted September 11, 2007 Share Posted September 11, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now