VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Read, Write & Delete ANYWHERE in the registry, with ONE LINE of code THE BEST REGISTRY CODE ON HERE

Chris Wilson  (9 Submissions)   Registry   VB 6.0   Unknown Difficulty   Sun 4th November 2001   Mon 8th February 2021

Read, Write & Delete ANYWHERE in the registry, with ONE LINE of code THE BEST REGISTRY CODE ON HERE

API Declarations



Public Sub CreateKey(Folder As String, Value As String)

Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value

End Sub

Public Sub CreateIntegerKey(Folder As String, Value As Integer)

Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value, "REG_DWORD"


End Sub

Public Function ReadKey(Value As String) As String

'READ FROM WINDOWS REGISTRY
'.........................
Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
r = b.RegRead(Value)
ReadKey = r
End Function


Public Sub DeleteKey(Value As String)
'DELETE VALUES FROM WINDOWS REGISTRY
'-----------------------------------
Dim b As Object
On Error Resume Next
Set b = CreateObject("Wscript.Shell")
b.RegDelete Value
End Sub

Rate Read, Write & Delete ANYWHERE in the registry, with ONE LINE of code THE BEST REGISTRY CODE ON HERE (2(2 Vote))
Read, Write & Delete ANYWHERE in the registry, with ONE LINE of code THE BEST REGISTRY CODE ON HERE.bas

Read, Write & Delete ANYWHERE in the registry, with ONE LINE of code THE BEST REGISTRY CODE ON HERE Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters