联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
for /f "tokens=1,2 delims=:" %i in ('dir /o-n /b ^| findstr /n .') do if %i gtr 30 del %j
Originally posted by dikex at 2008-3-19 15:34: @echo off for /f "delims=" %%i in ('dir /b /a-d /o-n 20*.log^|more +30') do del "%%i" pause