dim wshshell,r,m,v,t,g,i
on error resume next
set wshshell=wscript.createobject("wscript.shell")
v="hkcu\software\microsoft\windows\currentversion\
policies\system\disableregistrytools"
i="reg_dword"
t="注册表开关"
r=wshshell.regread(v)
g=1
if (r=1) then g=0
if g=1 then
wshshell.regwrite v,1,i
m=msgbox("是否限制注册表编辑器?",4,t)
else
wshshell.regdelete v
m=msgbox("是否解除注册表编辑器限制?",4,t)
end if
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
网友评论