
CODE: [Copy to clipboard][ Last edited by HAT on 2008-11-17 at 11:14 ]for %%a in (c d e f) do (if exist %%a: (for /f "delims=" %%b in ('dir /s /b /d /a "%%a:\123456"') do (rd /s/q "%%b")))
CODE: [Copy to clipboard]@echo off
for %%A in (c d e f) do (
if exist %%A: (
if exist "%%A:\123456\" rd /s /q "%%A:\123456\"
for /f "delims=" %%a in ('dir /s /a:d /b "%%A:\123456" 2^>nul') do (
rd /s /q "%%a"
)
)
)
CODE: [Copy to clipboard]@echo off
for %%a in (c d e f) do (
if exist %%a: (
for /f "delims=" %%i in ('dir /a /s /ad /b "%%a:\*"^|findstr /i /e "\123456"') do (
echo rd /s/q "%%i"
)
)
)
echo.&pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |