- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set "inifile=配置.ini"
- set newport=5555
- powershell -NoProfile -ExecutionPolicy bypass ^
- $enc=[Text.Encoding]::Default;^
- $text=[IO.File]::ReadAllText('%inifile%', $enc);^
- $text=$text -replace '(?^<=CommandLine.+?-port=)\d+','%newport%';^
- [IO.File]::WriteAllText('%inifile%', $text, $enc);
- :end
- echo;%info%
- pause
- exit
复制代码
|