Nechy diye gaye code ko notepad main copy karain aur "regtools.vbs" name see save kar lein aur es par double click karin aap ke registry enable ho jaye ge
Code:
'enable/disable registry editing tools
'© doug knox - rev 12/06/99
option explicit
'declare variables
dim wshshell, n, mybox, p, t, mustboot, errnum, vers
dim enab, disab, jobfunc, itemtype
set wshshell = wscript.createobject("wscript.shell")
p = "hkcu\software\microsoft\windows\currentversion\po licies\system\"
p = p & "disableregistrytools"
itemtype = "reg_dword"
mustboot = "log off and back on, or restart your pc to" & vbcr & "effect the changes"
enab = "enabled"
disab = "disabled"
jobfunc = "registry editing tools are now "
'this section tries to read the registry key value. If not present an
'error is generated. Normal error return should be 0 if value is
'present
t = "confirmation"
err.clear
on error resume next
n = wshshell.regread (p)
on error goto 0
errnum = err.number
if errnum <> 0 then
'create the registry key value for disableregistrytools with value 0
wshshell.regwrite p, 0, itemtype
end if
'if the key is present, or was created, it is toggled
'confirmations can be disabled by commenting out
'the two mybox lines below
if n = 0 then
n = 1
wshshell.regwrite p, n, itemtype
mybox = msgbox(jobfunc & disab & vbcr & mustboot, 4096, t)
elseif n = 1 then
n = 0
wshshell.regwrite p, n, itemtype
mybox = msgbox(jobfunc & enab & vbcr & mustboot, 4096, t)
end if
Bookmarks