建行的网银盾安装后,有一个自动启动服务WDMonitorCCB和一个自动启动程序WDCertM_CCB.exe,由于网银盾不常用,请人写了个批处理,以关闭这两个东西,请各位给修正一下,
- @echo off
- :TopStart
- Cls
- @echo 启动/关闭网银盾
- @echo.
- @echo.
- @echo.
- @echo. 1 关闭
- @echo.
- @echo.
- @echo. 2 开启
- @echo.
- @echo.
- @set /p choice=请选择相关操作(1,2):
- @if /I %choice% == 2 goto dakai
- @if /I %choice% == 1 goto guanbi
- goto TopStart
- :dakai
- ::打开
- sc config WDMonitorCCB start= auto
- sc start WDMonitorCCB
- REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v wdcertm_ccb /t REG_SZ /d "\"C:\WINDOWS\system32\WatchData\Watchdata CCB CSP v3.2\WDCertM_CCB.exe"" /f
- start "" "C:\WINDOWS\system32\WatchData\Watchdata CCB CSP v3.2\WDCertM_CCB.exe"
- goto :eof
- :guanbi
- ::结束
- sc config WDMonitorCCB start= disabled
- sc stop WDMonitorCCB
- tasklist|find /i "WDCertM_CCB.exe"
- IF %ERRORLEVEL% == 0 ntsd -c q -pn WDCertM_CCB.exe
- ::TASKKILL /IM WDCertM_CCB.exe /F
- REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v wdcertm_ccb /f
- goto :eof
-
-
复制代码
|