delete specific directory

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
krosumida
Posts: 1
Joined: 12 Nov 2010 09:22

delete specific directory

#1 Post by krosumida » 12 Nov 2010 09:28

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

amel27
Expert
Posts: 177
Joined: 04 Jun 2010 20:05
Location: Russia

Re: delete specific directory

#2 Post by amel27 » 13 Nov 2010 02:13

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

Post Reply