Try
 Code:
; where files to check are defined
$ListFile ="C:\List.txt"

; load list into array
$aFiles = FileIO($ListFile, 'R')

; enumerate array
For each $File in $aFiles
 ; Check if file exists and is not empty
 If Exist($File)		; exists, verify non-zero size
   If GetFileSize($File) = 0	; Empty - complain!
    MessageBox ("Error2:Consultant ID File Is To Small."+ Chr(13)+
    "Please contact IT Support on 1234, as you will not be able to log in,"+Chr(13)+
    "You will now be logged off this system!.",
    "WARNING MESSAGE", 48, 300)
    LogOff(1)
  EndIf
 Else				; does not exist
  MessageBox ("Error1:Consultant ID File Does Not Exist."+ Chr(13)+
  "Please contact IT Support on , as you will not be able to log in,"+Chr(13)+
  "You will now be logged off this system!.",
  "WARNING MESSAGE", 48, 300)
  LogOff(1)
 EndIf
Next
Your GetFileSize did not reference the file..

Glenn


Edited by Glenn Barnas (2012-09-28 03:28 PM)
Edit Reason: missing comment tag
_________________________
Actually I am a Rocket Scientist! \:D