删除项:
1,无论存在与否都删除:- reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v wdcertm_ccb /f>nul 2>nul
复制代码 2,非要弄个如果的话:- set a=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v wdcertm_ccb
- reg query %a%>nul 2>nul&® delete %a% /f>nul
复制代码
删除路径:
1,无论存在与否都删除:- reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\wdcertm_ccb /f>nul 2>nul
复制代码 2,非要弄个如果的话:- set a=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\wdcertm_ccb
- reg query %a%>nul 2>nul&® delete %a% /f>nul
复制代码
[ 本帖最后由 hanyeguxing 于 2011-1-18 12:26 编辑 ] |