So here is the script I have tried and it works a treat other than I get the message warning me a file does not exist even when it correctly identfies the one file in the list thats working hmmmm



$ListFile = "C:\scripts\list.txt"

$aFiles = FileIO($ListFile, 'R')
For each $File in $aFiles

If Exist ($File) = 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)
? "File Is Missing" + $File


Edited by GeorgeLittle (2012-09-28 02:56 PM)