Page 1 of 1

Find files in directory older 45 minutes

Posted: Fri Jun 25, 2010 11:33 am
by Hotimsk
I need to create a task that find files in directory older 45 minutes and delete them.
How i can do this?

Find files in directory older 45 minutes

Posted: Sat Jun 26, 2010 8:04 am
by Oleg
See two examples:
Age of file in hours
Age of file in minutes.tsk
These tasks do the loop on files in "c:\incoming" folder and calculate the age of file in hours and minutes.

You can delete files (or do something else) by using "If..Then" action.

Find files in directory older 45 minutes

Posted: Sun Jun 27, 2010 11:15 am
by Hotimsk
Thank you! This exactly that was needed.