Create script job to get list of files (Dir statement) and have it loop through the list (LoopWhile or LoopUntil with GetToken). For each found file get file date (FileDate) and time (FileTime) and compare it to the current time (DateTime, DateTimeDiff). If it is older (isGreater) than 30 minutes send email (MailSend) or other notification. : I am looking at 24x7 Scheduler and like many of the features it offers. : The current task I'm working on now is a way to generate email alerts. I use : a commandline program called BLAT for sending SMTP emails. : One type of event I would like to trigger is something like the following: IF : R:\DATA\IN PROGRESS\FILE.001 EXISTS for 30 minutes or more then perform : action. : I'm capable of scripting the action to take, but would like a way of actually : polling for the existence of files (with wilcards) and triggering the : event if the file exists for too long. We generate time-critical files : that other processes are scheduled to transfer. If the file is not : transfered, within a given amount of time someone needs to be notified. : Any ideas? : Can this be accomplished with 24x7 Scheduler? : Regards, : Brian Erdelyi : berdelyi@edulinx.ca
|