ShowCode 当前离线
VIP1
@echo off set "OldFile=1.txt" set "NewFile=2.txt" cd /d "%~dp0" (for /f "tokens=1* delims=:" %%a in ('findstr /n .* "%OldFile%"') do ( if "%%a" == "4" ( echo,%%b你好 ) else ( echo,%%b ) ))>"%NewFile%"复制代码
TOP