From 6ea2950d132d69a123c4ceaec3b5bf5b92a77872 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Fri, 4 Apr 2025 21:27:53 +0300 Subject: [PATCH] Auto close cmd after finish --- service_install.bat | 2 +- service_remove.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service_install.bat b/service_install.bat index 29cc13c..fc34db4 100644 --- a/service_install.bat +++ b/service_install.bat @@ -8,7 +8,7 @@ if "%1"=="admin" ( echo Started with admin rights ) else ( echo Requesting admin rights... - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs" exit /b ) diff --git a/service_remove.bat b/service_remove.bat index 654c43f..6763b80 100644 --- a/service_remove.bat +++ b/service_remove.bat @@ -6,7 +6,7 @@ if "%1"=="admin" ( echo Started with admin rights ) else ( echo Requesting admin rights... - powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/k \"\"%~f0\" admin\"' -Verb RunAs" + powershell -Command "Start-Process 'cmd.exe' -ArgumentList '/c \"\"%~f0\" admin\"' -Verb RunAs" exit /b )