mirror of
https://github.com/jazir555/GamesDows.git
synced 2025-06-07 08:07:22 +02:00
Update Enable GamesDows v2.bat
This commit is contained in:
parent
7ae63de542
commit
2b9537a3bf
@ -128,9 +128,17 @@ echo Delete the existing scheduled task if it exists
|
|||||||
schtasks /delete /tn "RunDelayedExplorerStart" /f
|
schtasks /delete /tn "RunDelayedExplorerStart" /f
|
||||||
|
|
||||||
echo Create the scheduled task using the XML file
|
echo Create the scheduled task using the XML file
|
||||||
schtasks /create /tn "RunDelayedExplorerStart" /xml "!XML_PATH!"
|
IF EXIST "%XML_PATH%" (
|
||||||
if %errorlevel% neq 0 (
|
schtasks /create /tn "RunDelayedExplorerStart" /xml "%XML_PATH%" >nul 2>&1
|
||||||
echo Error creating scheduled task
|
if %errorlevel% neq 0 (
|
||||||
|
echo Error creating scheduled task
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
) else (
|
||||||
|
echo [SUCCESS] Scheduled task 'RunDelayedExplorerStart' created.
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
echo [ERROR] XML file for scheduled task does not exist.
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user