Files
NexusLauncher/Run.bat
2025-11-23 20:41:50 +08:00

29 lines
804 B
Batchfile

@echo off
echo ========================================
echo NexusLauncher Startup
echo ========================================
echo.
echo [1/3] Closing existing instances...
taskkill /f /im pythonw.exe 2>nul
echo.
echo [2/3] Cleaning cache...
echo Cleaning all __pycache__ folders...
for /d /r %%d in (__pycache__) do @if exist "%%d" rd /s /q "%%d"
echo Cleaning module caches...
if exist "__pycache__" rd /s /q "__pycache__"
if exist "config\__pycache__" rd /s /q "config\__pycache__"
if exist "ui\__pycache__" rd /s /q "ui\__pycache__"
if exist "ui\task\__pycache__" rd /s /q "ui\task\__pycache__"
echo.
echo [3/3] Starting NexusLauncher...
start "" pythonw main.py
echo ========================================
echo NexusLauncher started!
echo ========================================
exit