@echo off
set "ip="
for /f "tokens=2 delims=[]" %%a in ('ping -n 1 yezishell.vicp.net^|findstr /c:"["') do set "ip=%%a"
(echo,[common]
echo,server_addr = %ip%
echo,server_port = 7000
echo,
echo,[G34-RDP]
echo,type = tcp
echo,local_ip = 0.0.0.0
echo,local_port = 3389
echo,remote_port = 6001
)>"frpc.ini"
cd /d %~dp0
frpc.exe -c frpc.ini
pause