联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off for /f "tokens=1* delims=:" %%i in ('findstr /n . 1.txt') do ( set row_num=%%i echo "%%j"|findstr "所列文件总数:">nul&& goto :ok ) goto :eof :ok cd.>2.txt for /f "skip=%row_num% tokens=*" %%i in (1.txt) do ( >>2.txt echo %%i ) goto :eof
@echo off for /f "delims=:" %%i in ('dir /s ^| findstr /n "所列文件总数"') do set num=%%i set /a num = %num% - 1 dir /s | more +%num% echo 按任意键退出... pause>nul