qiyuexx 当前离线
列兵
hfxiang 当前在线
上尉
@echo off&setlocal set /p server_ip=请指定ip地址(如:192.168.1.100 ): echo;{ echo; "server_ip": "%server_ip%", echo; "server_port": "7010", echo; "config_id":"2", echo; "local_run":"0" echo;} endlocal pause复制代码
TOP
qixiaobin0715 当前在线
大校
@echo off set /p _IP=Please enter the new IP Address: setlocal enabledelayedexpansion for /f "delims=" %%a in (123.txt) do ( set "str=%%a" if not "!str:server_ip=!"=="!str!" ( for /f "tokens=1* delims=:" %%i in ("%%a") do ( set str=%%i: "%_IP%", ) ) echo,!str! ) pause复制代码
Please enter the new IP Address:201.201.1.168 { "server_ip": "201.201.1.168", "server_port": "7010", "config_id":"2", "local_run":"0" } 请按任意键继续. . .复制代码