21 lines
637 B
Batchfile
21 lines
637 B
Batchfile
@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
|
|
)
|