Change registry value

By dimis1973 ·
We use an old software that keeps a database path and i want to built a vb script so i can change that path in registry.

The registry key path is: HKEY_CURRENT_USER\Software\VB Program Settings\supplies\frmSuppMDIMain
the key name is DatabaseName
key type: REG_SZ
Value: c:\program files\vb program

I do not know anything about vb script so any help would be precius

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

This will do it

by Bizzo In reply to Change registry value

Set Sh = CreateObject("WScript.Shell")
Sh.RegWrite "HKEY_CURRENT_USER\Software\VB Program Settings\supplies\frmSuppMDIMain\DatabaseName", "c:\program files\vb program", "REG_SZ"

Related Discussions

Related Forums