muink 当前离线
列兵
for /f %%f in ('"%~dp0bin\sed" -n "$=" list.txt') do ( echo 文件有%%f行 set /a line=%line%*2 if /i "!line!" gtr "%%f" ( echo 无效选择,请重新输入。.. )复制代码
评分人数
TOP
apang 当前离线
上将
@echo off path=%path%;"%~dp0bin" for /f "delims=" %%a in ('sed -n "$=" list.txt') do echo,%%a pause复制代码
@echo off for /f "delims=" %%a in ('""%~dp0bin\sed" -n "$^=" list.txt"') do echo,%%a pause复制代码