llbupt 当前离线
列兵
@echo off (for /f "delims=" %%a in (a.txt) do ( call :replace_str "%%a" ))>a.log pause&exit :replace_str setlocal&set "str=%~1" echo;%str:中国=&echo % endlocal&goto:eof复制代码
xczxczxcz (Tα酱油路过)当前离线
中尉
((Get-Content ".\a.txt") -replace ('中国:',"`r`n"))|Set-Content ".\OK.txt" pause复制代码
TOP