Add Dashboard Autostart Setup for Windows
- 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
This commit is contained in:
1 parent
a1b5d6a190
commit
c685bdf83f
5 files changed
+521
No files matched your search
@@ -0,0 +1,77 @@
|
||||
@echo off
|
||||
REM ==========================================
|
||||
REM Dashboard Autostart Installation
|
||||
REM Erstellt Verknüpfung im Autostart-Ordner
|
||||
REM ==========================================
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Dashboard Autostart Installation
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
REM Pfade
|
||||
set "SCRIPT_DIR=%~dp0"
|
||||
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] Script-Verzeichnis: %SCRIPT_DIR%
|
||||
echo [INFO] Autostart-Ordner: %STARTUP_FOLDER%
|
||||
echo.
|
||||
|
||||
REM Prüfe ob bereits installiert
|
||||
if exist "%SHORTCUT_PATH%" (
|
||||
echo [WARNUNG] Autostart bereits installiert!
|
||||
echo [INFO] Vorhandene Verknüpfung: %SHORTCUT_PATH%
|
||||
echo.
|
||||
choice /C JN /M "Möchten Sie die Verknüpfung neu erstellen?"
|
||||
if errorlevel 2 (
|
||||
echo [INFO] Abgebrochen
|
||||
pause
|
||||
exit /b 0
|
||||
)
|
||||
echo [INFO] Lösche alte Verknüpfung...
|
||||
del "%SHORTCUT_PATH%"
|
||||
)
|
||||
|
||||
REM Erstelle VBScript zum Erstellen der Verknüpfung
|
||||
set "VBS_SCRIPT=%TEMP%\create_shortcut.vbs"
|
||||
echo Set oWS = WScript.CreateObject("WScript.Shell") > "%VBS_SCRIPT%"
|
||||
echo sLinkFile = "%SHORTCUT_PATH%" >> "%VBS_SCRIPT%"
|
||||
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> "%VBS_SCRIPT%"
|
||||
echo oLink.TargetPath = "%SCRIPT_DIR%start_dashboard_silent.bat" >> "%VBS_SCRIPT%"
|
||||
echo oLink.WorkingDirectory = "%SCRIPT_DIR%" >> "%VBS_SCRIPT%"
|
||||
echo oLink.Description = "Trading Bot Dashboard - Autostart" >> "%VBS_SCRIPT%"
|
||||
echo oLink.IconLocation = "shell32.dll,13" >> "%VBS_SCRIPT%"
|
||||
echo oLink.Save >> "%VBS_SCRIPT%"
|
||||
|
||||
echo [INFO] Erstelle Verknüpfung...
|
||||
cscript //nologo "%VBS_SCRIPT%"
|
||||
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Verknüpfung konnte nicht erstellt werden!
|
||||
del "%VBS_SCRIPT%"
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
REM Aufräumen
|
||||
del "%VBS_SCRIPT%"
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Installation erfolgreich!
|
||||
echo ========================================
|
||||
echo.
|
||||
echo [OK] Dashboard startet ab jetzt automatisch beim Login
|
||||
echo.
|
||||
echo Verknüpfung erstellt:
|
||||
echo %SHORTCUT_PATH%
|
||||
echo.
|
||||
echo Ziel:
|
||||
echo %SCRIPT_DIR%start_dashboard_silent.bat
|
||||
echo.
|
||||
echo [TIPP] Dashboard-URL nach Login: http://localhost:8501
|
||||
echo.
|
||||
pause
|
||||
Reference in new issue
Block a user