diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-03-23 23:06:01 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-03-23 23:06:01 +0100 |
commit | c871ce3a02a621be52c853ab3c6ccf576a2fa89c (patch) | |
tree | c5226b64f0a5cadd1394fba7c713a7fee0b2ce5b /driver-start.bat | |
parent | e785a838bdc8dcd5c06ec753b38735fb685972fe (diff) |
* moved all certs in same named subdir
* added admin priv
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'driver-start.bat')
-rw-r--r-- | driver-start.bat | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/driver-start.bat b/driver-start.bat index 93612e7..acb4824 100644 --- a/driver-start.bat +++ b/driver-start.bat @@ -3,6 +3,15 @@ set SCNAME=PastDSE set DRIVER="%~dp0\x64\Debug\PastDSEDriver.sys" if not exist %DRIVER% set DRIVER="%~dp0\bin\x64\Debug\PastDSEDriver.sys" +net session >nul 2>&1 +if %ERRORLEVEL% EQU 0 ( + echo You are running this script as admin. Fine! +) else ( + echo ERROR: This script requires admin privileges! + pause + exit /b 1 +) + echo *************************** echo Service Name: %SCNAME% echo Driver......: %DRIVER% |