0

I have a directory with several subdirectories inside and several files inside those. I want to delete all files with the name 'foo.txt' in those subdirectories.

So basically I want Linux's rm dir/*/foo.txt, but del dir\*\foo.txt doesn't do it.

Also, the subdirectories might contain space characters.

1 Answer 1

1

This should work after moving to the top folder:

del /s foo.txt

Enter del /? to see the rest of the options.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .