|
Here is a script I used to validate some files. What I would like to do is alter this script to loop through a series of files in the $File1 variable read in from a text file any pointers ?
Thanks
;Declare The File Paths $File1 = "Hippo.txt";Check it exists 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
Edited by GeorgeLittle (2012-09-28 11:51 AM)
|