|
发表于 2009-8-4 16:24:46
|
显示全部楼层
本帖最后由 netegg 于 2009-8-4 16:49 编辑
$i=1
while 1
$val= regread("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" , regenumval("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", $i))
if $val = "" then exitloop
if stringinstr($val, "不删除的项“) = 0 then regdelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", regenumvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", $i))
endif
$i=$i+1
wend
是这个意思吗 |
|