
CODE: [Copy to clipboard][ Last edited by lxmxn on 2007-9-27 at 02:38 PM ]@echo off
for /f "delims=: tokens=1" %%a in ('findstr /N ".*" yourfile.ext') do set LineNum=%%a
if %LineNum% gtr 20 del yourfile.ext
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |