OK I've got it to work..using an array, as I problably should have done to start of..But at the end of the for next loop i keep getting a " out of boudaries" error...
Here's the entire code...
Sub Globals
dim file(6)
End Sub
Sub App_Start
Main.Show
CheckFiles
SIP(False)
End Sub
Sub CheckFiles
File(0)="Pairs v2.ini"
File(1)="1.png"
File(2)="2.png"
File(3)="3.png"
File(4)="4.png"
File(5)="5.png"
For x = 0 to arraylen(File())
If FileExist(File(x))= true Then
MsgBox(File(x))
else
Msgbox(file(x) & " is missing")
end if
Next x
End sub
EDIT:
I found my error...forgot to ad the "-1" in the "for x = 0 to arraylen(file())" line...
As i said, This could and was a "stupid" question....:sign0013::sign0137:
BTW: I plan to use these subs to check the integrety of my app, so that if some file is missing, the app will not run at all...Not a piracy protection but more of a "error free" thing...I also plan to generate a log if the app does not start to list the missing file... this way will be easyer to debug.