Commit e20c980b authored by Frank Denis's avatar Frank Denis

Use CMD.EXE /c to run Windows commands

That sounds very weird to me, but @mazesy said it was the right
thing to do.
parent 989de64c
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
@ECHO OFF
SFC 2>&1 | FIND /i "/SCANNOW" >NUL
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required, just to register or remove the dnscrypt-proxy service
......@@ -10,12 +12,12 @@ EXIT
:ADMINTASKS
@CD /d %~dp0
CD /d %~dp0
.\dnscrypt-proxy.exe -service install
.\dnscrypt-proxy.exe -service start
CMD.EXE /c "dnscrypt-proxy.exe -service install"
CMD.EXE /c "dnscrypt-proxy.exe -service start"
@ECHO ""
@SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
ECHO ""
SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
EXIT
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
@ECHO OFF
SFC 2>&1 | FIND /i "/SCANNOW" >NUL
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required, just to register or remove the dnscrypt-proxy service
......@@ -10,12 +12,12 @@ EXIT
:ADMINTASKS
@CD /d %~dp0
CD /d %~dp0
.\dnscrypt-proxy.exe -service stop
.\dnscrypt-proxy.exe -service start
CMD.EXE /c "dnscrypt-proxy.exe -service stop"
CMD.EXE /c "dnscrypt-proxy.exe -service start"
@ECHO ""
@SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
ECHO ""
SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
EXIT
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS
@ECHO OFF
SFC 2>&1 | FIND /i "/SCANNOW" >NUL
IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
GOTO ADMINTASKS
:ELEVATE
ECHO Elevated privileges are temporarily required, just to register or remove the dnscrypt-proxy service
......@@ -10,12 +12,12 @@ EXIT
:ADMINTASKS
@CD /d %~dp0
CD /d %~dp0
.\dnscrypt-proxy.exe -service stop
.\dnscrypt-proxy.exe -service uninstall
CMD.EXE /c ".\dnscrypt-proxy.exe -service stop"
CMD.EXE /c ".\dnscrypt-proxy.exe -service uninstall"
@ECHO ""
@SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
ECHO ""
SET /P _=Thank you for using dnscrypt-proxy! Hit [RETURN] to finish
EXIT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment