Question Locked

Change registry value

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

2 replies

by bizzo

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

This discussion is closed to new replies.