steam-deck-tools/scripts/run_loop.bat

16 lines
316 B
Batchfile
Raw Normal View History

if not "%1"=="am_admin" (powershell start -verb runas '%0' 'am_admin,%1' & exit /b)
if "%2"=="" (echo missing name & timeout /t 3 & exit /b)
cd "%~dp0\.."
:retry
taskkill /F /IM "%2.exe"
2026-02-23 05:08:07 +01:00
del %2\bin\Debug\net8.0-windows\%2.exe
2026-02-22 05:54:45 +01:00
dotnet build %2\%2.csproj
2026-02-23 05:08:07 +01:00
%2\bin\Debug\net8.0-windows\%2.exe
timeout /t 3
goto retry