Delete specific file in each folder

Status
Not open for further replies.

Ruriko

Active Member
808
2008
42
5,035
Is there a tool that can auto delete a certain file in each folder? like for example all of my folders contain a text file in them called test.txt and I want to delete that file in every folder. Is there a tool that can do this for windows?
 
6 comments
Open Command Prompt, and cd to the directory where the files you want to delete are..
then just enter the command

Code:
DEL /S test.txt

That should delete test.txt recursively.

Regards,
Gaurav
 
Total commander will search a drive or selected folders for a specific file. when it finds them you can feed them to a listbox to check size and dates etc.. then select all or individual files and hit delete.

Otherwise Gaurav command line delete is the simplest..
 
Last edited:
Status
Not open for further replies.
Back
Top