A) The whole thing should be an admin script and not run during the login as the task has nothing do do with regular login tasks.

B) See COMPAREFILETIMES() in the KiXtart Manual.
_________________________
There are two types of vessels, submarines and targets.