diff --git a/setup_startup.bat b/setup_startup.bat new file mode 100644 index 0000000..2f538a4 --- /dev/null +++ b/setup_startup.bat @@ -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 +)