http://gnuwin32.sf.net - get the entire package, and set it up.

Then, assuming you've installed the package to c:\utils, use this
command, and want to delete anything older than 3 months:

          c:\utils\find c:\ -name "*.jpg" -ctime -120 > 120.txt

and review what's going to be deleted.

Then, the following:

\utils\find c:\windows -name "*.jpg" -ctime -120 -delete

The parameter '-120' after '-ctime' iindicates that you want all files
more than 120 days from time of execution of the command. For anything
before 2007-01-01, you'll want to do some math, but it's on the rough
order of (365 * 3) plus the 7 months of this year.

Kurt

On Thu, Jul 30, 2009 at 10:55, Stefan Jafs<[email protected]> wrote:
> Ok a few months ago we talked about usage of forfiles and or delage32.
>
>
>
> Now what I would like to do (actually my President) is to delete all .jpg’s
> from year 2006 and older but I would like to have it piped to a list csv?
> First to check before I do the actual delete any ideas?
>
>
>
> ___________________________________
>
> Stefan Jafs
>
>
>
>
>
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to