Removing files from a directory which are over 24 hours old?

Commissario
Joined
16 Oct 2002
Posts
344,248
Location
In the radio shack
I have a directory full of images which gets updated every six minutes and I automatically upload that to a Picasa gallery.

I want to automatically delete files from that directory which are over 24 hours old - Picasa will then automatically remove them from the gallery.

Does anyone know of a free tool which will monitor a directory contents and delete files over a certain age?
 
OK, all done, thanks. I hope that a setting of -1 days will do the job.
 
Or leave it at n and set it to -1440 and that should be the full 24 hours?
 
.. or not. With it set to n and -5 for testing, it doesn't do anything at all.
 
That works, thanks.

One thing I've just noticed, there's a hidden .ini file in the same directory which I don't want to be deleted. Is there a simple tweak to that script to only have it remove .jpg files?
 
Back
Top Bottom