Dim( file_time, datetime ) Dim( sys_time, datetime, "@T"yyyy-mm-dd hh:mm:ss"") Dim( seconds, number ) Dim( file_is_old, boolean ) FTPFileDateTime( ..., ... file_time) DateTimeDiff( sys_time, file_time, seconds ) IsGreater( seconds, 60, file_is_old ) If(file_is_old, SEND_ALERT, DO_NEXT ) SEND_ALERT: ... DO_NEXT: ... : Support good afternoon, : I'm struggeling with the JAL scripting to find out : the difference in seconds between the time of an : FTPfile (FTPFileDateTime I suppose) and the system : time (Now ?). Do you have any suggestions ? : It is for a script that has to check wether on the : FTP site there are still files that are present : since more then let's say 1 hour. Another script : should have taken them and in case the files are : still there an alert has to be sent to the : administrator. : Thanks for helping : Robbert
|