- @echo off
- title 有什么问题,可加QQ956535081及时沟通;代码可用,扫码头像,随意赞助
- cd /d "%~dp0"
- set "file=test.xml"
- powershell "$Utf8NoBom=New-Object System.Text.UTF8Encoding $False;$t=[IO.File]::ReadAllText('%file%', [Text.Encoding]::UTF8);$t=$t -replace '(?<=<CenterServerIp>)[^<]*','10.32.20.220';[IO.File]::WriteAllText('%file%', $t, $Utf8NoBom);"
- pause
复制代码
|