Board logo

标题: [系统相关] 请写一个启动/关闭支付宝安全保障服务的批处理 [打印本页]

作者: cyhong    时间: 2014-8-18 22:21     标题: 请写一个启动/关闭支付宝安全保障服务的批处理

本帖最后由 cyhong 于 2014-8-18 22:36 编辑

之前曾在此讨得一个关于网银盾的批处理,用的很好。见启用/关闭网银盾5楼或本帖2楼

现在想讨一个关于启动/关闭支付宝安全保障服务的批处理。

支付宝安全保障服务,有3个服务,都是自动开启。分别是Alipay payment client security service;Alipay security business service;Alipay security service。

要求与2楼类似

一键开启/关闭此3个服务。
作者: cyhong    时间: 2014-8-18 22:28

启用/关闭网银盾
  1. @echo off
  2. title 启用/关闭网银盾
  3. set b=WDMonitorCCB&set w=wdcertm_ccb
  4. set "r=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
  5. set "d=%windir%\system32\WatchData\Watchdata CCB CSP v3.2\%w%.exe"
  6. reg query "%r%" /v %w%>nul 2>nul&&(
  7.     echo 当前状态:网银盾已启用,按任意键关闭&pause>nul
  8.     sc config %b% start= disabled
  9.     sc stop %b%
  10.     reg delete "%r%" /v %w% /f
  11.     taskkill /im %w%.exe /f
  12.     goto:eof
  13. )
  14. echo 当前状态:网银盾已关闭,按任意键启用&pause>nul
  15. sc config %b% start= auto
  16. sc start %b%
  17. reg add "%r%" /v %w% /d "\"%d%\"" /f
  18. start "" "%d%"
复制代码





欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2