- start_dashboard.bat: Manual start with console output - start_dashboard_silent.bat: Silent background start - install_dashboard_autostart.bat: One-click autostart installation - uninstall_dashboard_autostart.bat: Remove autostart - DASHBOARD_AUTOSTART_SETUP.md: Complete documentation Features: - Automatic startup on Windows login - Opens browser at http://localhost:8501 - Silent background execution - Easy install/uninstall - Troubleshooting guide included
58 lines
1.4 KiB
Batchfile
58 lines
1.4 KiB
Batchfile
@echo off
|
|
REM ==========================================
|
|
REM Dashboard Autostart Deinstallation
|
|
REM Entfernt Verknüpfung aus Autostart
|
|
REM ==========================================
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Dashboard Autostart Deinstallation
|
|
echo ========================================
|
|
echo.
|
|
|
|
set "STARTUP_FOLDER=%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup"
|
|
set "SHORTCUT_NAME=Trading Bot Dashboard.lnk"
|
|
set "SHORTCUT_PATH=%STARTUP_FOLDER%\%SHORTCUT_NAME%"
|
|
|
|
echo [INFO] Suche Autostart-Verknüpfung...
|
|
echo.
|
|
|
|
if not exist "%SHORTCUT_PATH%" (
|
|
echo [INFO] Keine Autostart-Verknüpfung gefunden
|
|
echo [INFO] Dashboard ist nicht im Autostart installiert
|
|
pause
|
|
exit /b 0
|
|
)
|
|
|
|
echo [GEFUNDEN] %SHORTCUT_PATH%
|
|
echo.
|
|
choice /C JN /M "Möchten Sie die Autostart-Verknüpfung entfernen?"
|
|
if errorlevel 2 (
|
|
echo [INFO] Abgebrochen
|
|
pause
|
|
exit /b 0
|
|
)
|
|
|
|
echo.
|
|
echo [INFO] Entferne Verknüpfung...
|
|
del "%SHORTCUT_PATH%"
|
|
|
|
if errorlevel 1 (
|
|
echo [ERROR] Verknüpfung konnte nicht gelöscht werden!
|
|
echo [ERROR] Möglicherweise fehlende Berechtigungen
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Deinstallation erfolgreich!
|
|
echo ========================================
|
|
echo.
|
|
echo [OK] Dashboard startet nicht mehr automatisch
|
|
echo.
|
|
echo [TIPP] Sie können Dashboard manuell starten mit:
|
|
echo start_dashboard.bat
|
|
echo.
|
|
pause
|