wuhanbin 当前离线
二级士官
CrLf 当前离线
论坛巡查
TOP
netbenton (秋风夜雨)当前离线
荣誉版主
@echo off for /f "tokens=*" %%a in ('findstr /n .* 1.txt') do ( set tmp=%%a setlocal enabledelayedexpansion set tmp=!tmp:测试=test! rem 把 冒号 前的丢掉 echo;!tmp:*:=! endlocal ) pause复制代码
@echo off for /f "delims=" %%a in ('findstr /n .* 1.txt') do ( set tmp=%%a setlocal enabledelayedexpansion for /f "tokens=1* delims=:" %%b in ("!tmp:测试=test!") do echo %%c endlocal ) pause复制代码
@echo off for /f "tokens=1* delims=:" %%a in ('findstr /n .* 1.txt') do ( set tmp=%%b setlocal enabledelayedexpansion echo !tmp:测试=test! endlocal ) pause复制代码
@echo off for /f "tokens=1* delims=:" %%a in ('findstr /n .* 1.txt') do set tmp=%%b&call echo %%tmp:测试=test%% pause复制代码