Add Windows Task Scheduler setup script for automatic startup
This commit is contained in:
20
setup_startup.bat
Normal file
20
setup_startup.bat
Normal 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
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user