16 lines
474 B
Batchfile
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
|