
CODE: [Copy to clipboard][ Last edited by tireless on 2008-10-9 at 11:18 ]@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"
)
)
)
CODE: [Copy to clipboard][ Last edited by tireless on 2008-10-9 at 14:17 ]@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"
)
)
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |