diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-08-03 17:07:22 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-08-03 17:07:22 +0200 |
commit | bee69f5160640f493e7a5f4fa5befeda8c3c04a3 (patch) | |
tree | 5a759e72cac7088e9752f91c8e30278dbe854135 /bin/ddk-template-cplusplus.bat | |
parent | a7cae76c5ef40f52a1dd6895373e8c93dffaadf0 (diff) |
First stable release.1.0release-1.0
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'bin/ddk-template-cplusplus.bat')
-rwxr-xr-x | bin/ddk-template-cplusplus.bat | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/ddk-template-cplusplus.bat b/bin/ddk-template-cplusplus.bat new file mode 100755 index 0000000..4ea1ec3 --- /dev/null +++ b/bin/ddk-template-cplusplus.bat @@ -0,0 +1,27 @@ +@echo off +set SERVICE_NAME=DDK-Template-CPlusPlus +set DRIVER="%~dp0\ddk-template-cplusplus.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 |