batch file to delete files in unknown folder

November 8, 2011 at 08:33:07
Specs: Windows 2003
I have a folder folderA, which contains 100s of folders, all of which contain a folder named download. I need to delete all files in the download folder older than 4 days.

del c:\FolderA\*\Download\*.* older than 4 days.

Forfiles will delete all files older than 4 days, but I only need to delete the files in Download. I don't know how to use a wild card to do it.

Thanks in advance

See More: batch file to delete files in unknown folder

Report •

November 17, 2011 at 17:29:55
I have never used Forfiles but if you havent found it already there is heaps of info on technet. Click on the link below to go to the technet ForFiles page.
">ForFiles on TechNet

Report •
Related Solutions

Ask Question