How can I remove all folders and sub folders containing
SQ00 in their name from the command-prompt?
First go to the path where you would want to originate the search/delete.
Then type the following:
When you see the output and you are comfortable it would delete the folder(s) you see, you can remove the echo and actually run the command like this:
For each result it finds with dir, it puts it in the variable
Using the SFUA utility toolkit:
find . -type d -name '*sq00*'|xargs rm -r --Of course, this deletes all of the subdirectories of the
Using JP Software's TCC/LE:
for /r /d %dir in (*sq00*) do del /s/x %dir\*Turning off prompting, not deleting the subfolders of the folders found, including system and hidden files, or choosing whether or not to delete to the Recycle Bin are all exercises in the various options (such as
Using Microsoft's command interpreter:
As in Mattias Ahnberg's answer.