@echo off title Connect to Marcus set "DIR=%LOCALAPPDATA%\ConnectToMarcus" if not exist "%DIR%" mkdir "%DIR%" echo Getting the latest agent... curl -fsS -o "%DIR%\agent.py" https://markyninox.com/agent.py || powershell -NoProfile -Command "Invoke-WebRequest -UseBasicParsing 'https://markyninox.com/agent.py' -OutFile '%DIR%\agent.py'" echo Installing background service (auto-reconnects, returns on reboot)... > "%DIR%\run.vbs" echo CreateObject("WScript.Shell").Run "cmd /c python ""%DIR%\agent.py""", 0, False copy /Y "%DIR%\run.vbs" "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\ConnectToMarcus.vbs" >nul python -m pip install --quiet aiohttp 2>nul || py -m pip install --quiet aiohttp 2>nul echo. echo You only do this once. Type yes when asked. After that it stays connected echo in the background and you'll get accept/deny popups when needed. echo. python "%DIR%\agent.py" || py "%DIR%\agent.py" pause