Files
sap-erp/dist-1/deploy/uninstall-autostart.bat
John 69b4e68baf
SAP-ERP Portal CI/CD / build (push) Failing after 5m20s
first commit
2026-09-23 17:31:02 +05:30

16 lines
474 B
Batchfile

@echo off
rem ==================================================================
rem Removes the Windows autostart (scheduled task) and stops the app.
rem >> RUN AS ADMINISTRATOR
rem ==================================================================
net session >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo This script must be run as Administrator.
pause
exit /b 1
)
call "%~dp0stop-server.bat"
schtasks /Delete /TN "SAP-ERP-Portal" /F
echo Autostart removed.
pause