@echo off
title Yuseed Remote - Auto Config

echo.
echo ================================================
echo   Yuseed Remote - Auto Config
echo ================================================
echo.

:: Create config directory if not exists
if not exist "%APPDATA%\RustDesk\config" mkdir "%APPDATA%\RustDesk\config"

:: Write RustDesk config with pre-set server
powershell -NoProfile -Command "Set-Content -Path '%APPDATA%\RustDesk\config\RustDesk2.toml' -Value '[options]','custom-rendezvous-server = \"101.201.155.211\"','key = \"QSzR7c40PrxlKnZ0eaHQLQ6icLdSI8fpS0Q0Aomma89=\"' -Encoding ASCII"

echo.
echo ================================================
echo   Config done! Server: 101.201.155.211
echo ================================================
echo.
echo Now open RustDesk, the server is ready.
echo Your ID will appear in RustDesk main window.
echo.
pause
