Page 1 of 1

delete specific directory

Posted: 12 Nov 2010 09:28
by krosumida
Hi guys,

need help with a script that searches the computer for all directories called Debug for ex. and delete them

any help much appreciated.
thanks

Re: delete specific directory

Posted: 13 Nov 2010 02:13
by amel27

Code: Select all

for /f "delims=" %%a in ('dir /ad/b/s C:\Debug') do echo rd /q/s "%%a"

remove ECHO command for delete