Saved Bookmarks
| 1. |
Solve : Batch File Execution based on Modified Date? |
|
Answer» HI there, I am trying to create a batch file that will only run if a certain file has been modified. I was PLANNING on using something like windows task scheduler to execute that batch file every hour or so, but WOULD like the batch file to end if a certain file has not been modified based on current date. Any ideas or suggestions would be great. Thanks,What have you got so far CODE wise? What do you mean "modified"? If the last-modified date/time changes? The file date stamp is the the time / date of modification, and the %%~t FOR variable modifier will read it. You could set the archive flag .... when it is updated it will be reset, you can then check this in your batch - no mucking around with date testing This is how backup routines determine if a file needs archiving or not Graham |
|