Code:
$ListFile ="C:\List.txt"
$aFiles = FileIO($ListFile, 'R')
For each $File in $aFiles
;Declare The File Paths
$File1 = $File 
If Exist ($File1) = 0
 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)
Else
 ;Check if the file is of a size greater than 0KB
 $UIDSIZE = GetFileSize($UIDINFO)
 If $UIDSIZE = 0
 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)
 Sleep 10

 EndIf 
Next
Like that ?


Edited by Glenn Barnas (2012-09-28 02:53 PM)
Edit Reason: Please use code tags!