Determine remote file -date stamp
Posted: 18 Sep 2011 08:48
Part of a batch file I'm creating is refreshing a sql database from a script being called on a different server. I'd like to be able to check if the remote sql backup file is of the current date and not earlier. This will insure I'm restoring the most current backup.
Can anyone advise a method to check this in the batch file? I'd like to have a line where it checks this and if the date of the backfile (fscm_fullback.bk) is current to continue running the balance of the script, and if not abort script.
Appreciate insight/ideas.
Can anyone advise a method to check this in the batch file? I'd like to have a line where it checks this and if the date of the backfile (fscm_fullback.bk) is current to continue running the balance of the script, and if not abort script.
Appreciate insight/ideas.