0

I am looking for simple example to handle registry key like add new key,edit available key, delete availadle kay,search for key.......
i search for examples but they are complicated to understand......
even simple functions also welcome (without full code)

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by debasisdas
0
dim wsh
set wsh = createobject("WScript.Shell")
wsh.regwrite "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff", "fun value", "REG_SZ" ' // Write To Value To Registry, Also For Editing

msgbox wsh.regread "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff\fun value" ' // Read From Registry

wsh.regdelete "HKLM\Software\Microsoft\Windows\Currentversion\Run\funstuff" ' // Delete Value From Registry

http://support.microsoft.com/kb/178755

0

try to use

SAVESETTINGS
GETSETTINGS
DELETE SETTINGS

for the purpose.

That doesn't answer his question or tell him how to use the registry from VB. It limits him to using HKLM\Software\hisapp.... what if he wants to modify the run key, or clear an MRU?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.