Files
Toni Uhlig 84c2170f4d * added batch scripts to vs project
* fixed driver-start

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2020-03-23 23:57:53 +01:00

27 lines
633 B
Batchfile

@echo off
set SCNAME=PastDSE
set DRIVER="%~dp0\x64\Debug\PastDSEDriver.sys"
if not exist %DRIVER% set DRIVER="%~dp0\bin\x64\Debug\PastDSEDriver-cert_0.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%
echo ***************************
sc create %SCNAME% binPath= %DRIVER% type= kernel
echo ***************************
sc start %SCNAME%
echo ***************************
sc query %SCNAME%
REM pause
timeout /t 3