yx74110 当前离线
上等兵
评分人数
yyykkkyyyy 当前离线
二级士官
@echo off&setlocal enabledelayedexpansion set/a s1=5,s2=7 set/a s1-=1 (for /f "tokens=3 delims= @ " %%i in (1.txt)do ( set h=%%i if not "!h:~%s1%!"=="" if "!h:~%s2%!"=="" ( echo %%i>con echo %%i )))>2.txt pause复制代码
TOP
@echo off&setlocal enabledelayedexpansion set/a s1=5,s2=7 set/a s1-=1 (for /f "tokens=1-3* delims= @ " %%a in (1.txt)do ( set h=%%c if not "!h:~%s1%!"=="" if "!h:~%s2%!"=="" ( echo 所在行 %%c>con echo "%%a %%b %%c@%%d" )))>2.txt pause复制代码
601997526 当前离线
六级士官
@echo off&setlocal enabledelayedexpansion set a=TAB键 for /f "tokens=1,2,3,4 delims=%a%@" %%i in (a.txt) do (set i=%%k if not "!k:~4!"=="" (if "!k:~7!"=="" echo %%i%a%%%j%a%%%l@%%l) ) pause复制代码