Board index » delphi » schedule time?
JS
![]() Delphi Developer |
JS
![]() Delphi Developer |
schedule time?2004-01-30 05:56:51 AM delphi227 My program is a maintained purpose program. It need to cleanup some files at midnight when it is a rollover of day. How to implement that? Put a timer and check the time value with an old value (base on date) within every few seconds? Other ways are around? Thanks. |
Ben Sollis
![]() Delphi Developer |
2004-01-30 10:48:58 PM
Re:schedule time?
Add the exe to the windows task scheduler.
Ben "JS" <XXXX@XXXXX.COM>writes QuoteMy program is a maintained purpose program. It need to cleanup some files |
JS
![]() Delphi Developer |
2004-01-30 11:04:42 PM
Re:schedule time?
The requirement is need to reside on the application to detector the time.
Can I do this way: Repopulate an array like this(base on the oldest file's date): Date - Status 30/01/2004 12:01 AM - done. 31/01/2004 12:01 AM - ... And compare with the OS time using timer by one hour, if it is right after the day 12:01 AM. then do the job. Thanks... "Bill Todd (TeamB)" <XXXX@XXXXX.COM>writes QuoteOn Thu, 29 Jan 2004 16:56:51 -0500, "JS" <XXXX@XXXXX.COM> |