Batch file for Search & Delete - TechRepublic
General discussion
June 3, 2003 at 11:35 PM
link999

Batch file for Search & Delete

by link999 . Updated 23 years, 1 month ago

I need to create a batch file that will search for, and delete, folders on a hard drive.

For example, say I had three folders called “HAPPY”. Something like this:

1) c:\My Documents\Happy\
2) c:\Windows\System32\Happy\
3) c:\My Music\Rock\Happy\

I need a batch file that would be run from the root of “C:\” that would find and delete all three of the “Happy” folders.

It has to be a BATCH file. It has to be able to run from within DOS.

This discussion is locked

All Comments