联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off set drives=c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z: for %%a in (%drives%) do ( if exist %%a ( for %%b in (A B C) do ( for /f "delims=" %%c in ('dir /s /b %%a\%%b 2^>nul') do rd /s /q "%%c" ) ) )
@echo off set drives=c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z: for %%a in (%drives%) do ( if exist %%a ( cd /d %%a\ for %%b in (A B C) do ( for /r %%c in (%%b) do if exist %%c rd /s /q "%%c" ) ) )