How can I remove all folders and sub folders containing SQ00 in their name from the command-prompt?
|
| ||||
|
feedback
|
|
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 | |||
|
feedback
|
Using the SFUA utility toolkit:This can be done using the find . -type d -name '*sq00*'|xargs rm -r --Of course, this deletes all of the subdirectories of the *sq00* directories.
Using JP Software's TCC/LE:This is a simple exercise in the use of the ordinary 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 /y) to the del command.
Using Microsoft's command interpreter:As in Mattias Ahnberg's answer. | |||
|
feedback
|
