Simple VBS script to get a value from the registry

Just a basic example how to get a value from the registry using a VB script, here I am finding where Lotus Notes is installed.

Set objShell = CreateObject("WScript.Shell")

regKey = "HKLM\SOFTWARE\Lotus\Notes\"
regValue = "Path"
 
regResult = objShell.RegRead(regKey & regValue) 
 
wscript.echo regResult

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.