Return to Snippet

Revision: 10368
at December 22, 2008 14:33 by jimfred


Initial Code
for /f %%D in ('dir/s/b/ad ^| find/i "obj" ') do rd/s/q %%D

Initial URL
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_23740037.html

Initial Description
Although file wildcards can be used to delete files recursively, it's not as simple for directories. This example will recursively remove 'obj' directories.

Initial Title
Remove directories recursively - Similar to rd /r obj

Initial Tags

                                

Initial Language
DOS Batch