From bee69f5160640f493e7a5f4fa5befeda8c3c04a3 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 3 Aug 2021 17:07:22 +0200 Subject: First stable release. Signed-off-by: Toni Uhlig --- bin/ddk-template-cplusplus-EASTL.bat | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bin/ddk-template-cplusplus-EASTL.bat (limited to 'bin/ddk-template-cplusplus-EASTL.bat') diff --git a/bin/ddk-template-cplusplus-EASTL.bat b/bin/ddk-template-cplusplus-EASTL.bat new file mode 100755 index 0000000..58d8c5f --- /dev/null +++ b/bin/ddk-template-cplusplus-EASTL.bat @@ -0,0 +1,27 @@ +@echo off +set SERVICE_NAME=DDK-Template-CPlusPlus-EASTL +set DRIVER="%~dp0\ddk-template-cplusplus-EASTL.sys" + +net session >nul 2>&1 +if NOT %ERRORLEVEL% EQU 0 ( + echo ERROR: This script requires Administrator privileges! + pause + exit /b 1 +) + +echo --------------------------------------- +echo -- Service Name: %SERVICE_NAME% +echo -- Driver......: %DRIVER% +echo --------------------------------------- + +sc create %SERVICE_NAME% binPath= %DRIVER% type= kernel +echo --------------------------------------- +sc start %SERVICE_NAME% +echo --------------------------------------- +sc query %SERVICE_NAME% +echo [PRESS A KEY TO STOP THE DRIVER] +pause +sc stop %SERVICE_NAME% +sc delete %SERVICE_NAME% +echo Done. +timeout /t 3 -- cgit v1.2.3