Files
AIGC/demo/start-frpc.bat

37 lines
764 B
Batchfile
Raw Permalink Normal View History

@echo off
chcp 65001 >nul
echo ====================================
echo 启动 FRP 客户端
echo ====================================
echo.
REM 检查 frpc.ini 是否存在
if not exist "frpc.ini" (
echo [错误] frpc.ini 配置文件不存在!
echo 请先创建 frpc.ini 配置文件
echo 可以参考 frpc.ini.example 文件
pause
exit /b 1
)
REM 检查 frpc.exe 是否存在
if not exist "frpc.exe" (
echo [错误] frpc.exe 不存在!
echo 请先下载 FRP 客户端:
echo https://github.com/fatedier/frp/releases
echo 解压后,将 frpc.exe 放在当前目录
pause
exit /b 1
)
echo 正在启动 FRP 客户端...
echo 配置文件: frpc.ini
echo.
REM 启动 FRP 客户端
frpc.exe -c frpc.ini
pause