Found by Tony S.
This is a for loop for DOS, used in this case to backup .BAK files (-m) , over a day old (-d) to TSM and then delete them afterwards. The -s makes it recursive.

Just in case you ever need to do it.

Apparently forfiles comes with win2003 sp1 onwards.

C:\WINDOWS\system32\forfiles -p d:\TSM-DB-Backups  -s -m *.BAK -d -1 -c "cmd /C del @Path"

About troyski

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Private

Post navigation