I am trying to pass 2 switches for the program to run else it will terminate. Everything runs fine until it starts to add my includes. I get an error of "array variable has incorrect number of subscripts"
Thanks for any pointers.
;this works
If $CmdLine[0] = 1 Then MsgBox(0, "", "scripts written by ." & @CRLF & "Phone: ") Exit
If $CmdLine[0] = 0 Then MsgBox(0, "", "scripts written by ." & @CRLF & "Phone: ") Exit
If $CmdLine[1] = "blahswitch" Then
If $CmdLine[2] <> "431128" Then Exit
else
MsgBox(0,"","nope")
Exit
EndIf
MsgBox(0,"","Madeit")
;this doesn't
#include <String.au3>
#include <INet.au3>
#include <Zip.au3>
#include <File.au3>
#include <Array.au3>
#RequireAdmin
Break(0)