Replace “find” with “findstr” in batches (#764)

* Update service-install.bat

* Update service-restart.bat

* Update service-uninstall.bat
This commit is contained in:
Aleksandr Sergeev 2019-03-21 16:23:01 +03:00 committed by Frank Denis
parent 85abbeac61
commit a389067d29
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | find "S-1-16-12288" >nul && goto :admin whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
if "%~1"=="RunAsAdmin" goto :error if "%~1"=="RunAsAdmin" goto :error
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . . echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .

View File

@ -3,7 +3,7 @@
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | find "S-1-16-12288" >nul && goto :admin whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
if "%~1"=="RunAsAdmin" goto :error if "%~1"=="RunAsAdmin" goto :error
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . . echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .

View File

@ -3,7 +3,7 @@
setlocal EnableExtensions setlocal EnableExtensions
title DNSCrypt-Proxy title DNSCrypt-Proxy
whoami /groups | find "S-1-16-12288" >nul && goto :admin whoami /groups | findstr "S-1-16-12288" >nul && goto :admin
if "%~1"=="RunAsAdmin" goto :error if "%~1"=="RunAsAdmin" goto :error
echo Requesting privileges elevation for managing the dnscrypt-proxy service . . . echo Requesting privileges elevation for managing the dnscrypt-proxy service . . .