I'm looking for some script which will do the following...

Check if screensaver.scr exists in a directory, check the date stamp. If it does not match the latest version, then overwrite it with the new version.

If the file doesn't exist at all, then copy the latest version to the directory..

Is there a function to check the date and timestamp on a file?