Would you like to react to this message? Create an account in a few clicks or log in to continue.
Chat Box

User Yang Sedang Online
Total 13 uses online :: 0 Terdaftar, 0 Tersembunyi dan 13 Tamu

Tidak ada

[ View the whole list ]


User online terbanyak adalah 34 pada Tue Oct 22, 2024 10:15 pm
Total Pengunjung
Website counter
Visitor
Activating regedit (Enable/Disable registry tools) Labels=0

Activating regedit (Enable/Disable registry tools)

Go down

Activating regedit (Enable/Disable registry tools) Empty Activating regedit (Enable/Disable registry tools)

Post by risdo Thu Oct 29, 2009 1:05 pm

'Enable/Disable Registry Editing tools
'©️ Doug Knox - rev 12/06/99
'This code may be freely distributed/modified as long as it remains free of charge
'http://www.icpug.org.uk/national/features/030607fe.htm
'Edited by PatheticCockroach - http://patheticcockroach.com

Option Explicit
'Declare variables
Dim WSHShell, rr, rr2, MyBox, val, val2, ttl, toggle
Dim jobfunc, itemtype

On Error Resume Next

Set WSHShell = WScript.CreateObject("WScript.Shell")
val = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
val2 = "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools"
itemtype = "REG_DWORD"
jobfunc = "Registry Editing Tools are now "
ttl = "Result"

'reads the registry key value.
rr = WSHShell.RegRead (val)
rr2 = WSHShell.RegRead (val2)

toggle=1
If (rr=1 or rr2=1) Then toggle=0

If toggle = 1 Then
WSHShell.RegWrite val, 1, itemtype
WSHShell.RegWrite val2, 1, itemtype
Mybox = MsgBox(jobfunc & "disabled.", 4096, ttl)
Else
WSHShell.RegDelete val
WSHShell.RegDelete val2
Mybox = MsgBox(jobfunc & "enabled.", 4096, ttl)
End If


sumber dari http://www[dot]patheticcockroach[dot]com/mpam4/index[dot]php?p=28
risdo
risdo
Admin
Admin

Posts : 209
Reputasi : 377
Cendol : 1
Join date : 26.10.09
Location : Bekasi

https://c0b4d1b4c4.indonesianforum.net

Kembali Ke Atas Go down

Kembali Ke Atas


 
Permissions in this forum:
Anda tidak dapat menjawab topik