Search found 6 matches
- 12 Jan 2011 22:07
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Re: Alert if files found in a folder are older than X hours
Ok here is the near final code. We have an application that picks up files from a certain folder, every now and again a file will come in corrupt as such it will block the application and it will not pickup any of the other files. I hope to have created this workaround script to check for files in t...
- 11 Jan 2011 23:07
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Re: Alert if files found in a folder are older than X hours
Well this is what I have so far please let me know what you think. I could not get any error levels from the gnu find so I had to pump the output to findstr @echo off &setlocal gnu_find C:\Alert\Monitor -type f -mmin +60 | findstr "txt" >nul && goto foundfiles echo. All is good...
- 06 Jan 2011 13:55
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Re: Alert if files found in a folder are older than X hours
aGerman i completely agree about times in windows there always seems to be not set standard of how time stamps are shown.
ghostmachine4 thanks for the link I will download and have a play with it.
ghostmachine4 thanks for the link I will download and have a play with it.
- 05 Jan 2011 19:59
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Re: Alert if files found in a folder are older than X hours
Thanks for the help aGerman, yes its funny that the files have a or p on them. I think this is a feature of windows 2000 on windows 7 it shows as either AM or PM The code runs but not sure as expected Here is the file listing Directory of C:\Alert\Monitor 01/06/2011 12:41p 0 file1.txt 10/24/2007 10:...
- 05 Jan 2011 01:18
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Re: Alert if files found in a folder are older than X hours
Not sure what happen to my last reply but here it is again Thank you for looking at this agerman (after getting a copy of reg.exe from winxp on to this win2k machine the following error came up) C:\Alert>monitor2 Invalid number. Numeric constants are either decimal (17), hexadecimal (0x11), or octal...
- 03 Jan 2011 22:54
- Forum: DOS Batch Forum
- Topic: Alert if files found in a folder are older than X hours
- Replies: 9
- Views: 12722
Alert if files found in a folder are older than X hours
I really liked tips for date and time but I wanted to know if its possible to write a script that can be run to monitor a folder and to generate an alert if files found in the folder are older than X amount of hours rather than amount of days in one of the examples given.