Add Windows Task Scheduler setup script for automatic startup

This commit is contained in:
2025-12-12 10:14:45 +11:00
parent 7cdad10101
commit 0ec5f2701f

20
setup_startup.bat Normal file
View File

@@ -0,0 +1,20 @@
@echo off
echo Setting up LEGO Instructions Manager to run at startup...
REM Create a scheduled task to run at logon
schtasks /create /tn "LEGO Instructions Manager" /tr "E:\LIM\start_lim.bat" /sc onlogon /rl highest /f
if errorlevel 1 (
echo Failed to create scheduled task. Make sure you run this as Administrator.
pause
exit /b 1
) else (
echo Successfully created startup task!
echo.
echo The LEGO Instructions Manager will now start automatically when you log in.
echo.
echo To remove this startup task later, run:
echo schtasks /delete /tn "LEGO Instructions Manager" /f
echo.
pause
)