Ads

Change Windows Registry via LotusScript

There is a LotusScript Class that allows reading and writing of values in the Windows Registry: registry-lss (lss, 16 KB). It was originally posted in the Notes 6/7 Forum ...

You can determine the installation path of your Notes Installation:

Dim regObj As New Registry
Msgbox regObj.ReadRegValue(HKEY_LOCAL_MACHINE, "Software\Lotus Notes\6.0", "Path")
Set regObj = Nothing


and even iterate over multiple values:

Dim regObj As New Registry
Dim iCount As Integer
Do Until regObj.LastError <> 0
Call regObj.ReadRegValueAll(HKEY_LOCAL_MACHINE, "Software\Lotus Notes\6.0", iCount)
If regObj.LastError = 0 Then
Msgbox regObj.KeyValue, 64, "Registry Object- Value of key: " & regObj.KeyName
End If
iCount = iCount + 1
Loop
Set regObj = Nothing
Thomas Adrian (Gast) - 29. Okt, 18:33

Why not use evaluate instead - requires only one row

Path = Implode(Evaluate ({@RegQueryValue("HKEY_LOCAL_MACHINE"; "Software\\Lotus\\Notes\\7.0"; "Path")}))

For more evaluate functions visit:
http://www.notessidan.se/A55B53/blogg.nsf/plink/PPAN-6MEVDZ

Thomas Adrian (Gast) - 29. Okt, 18:35

...

Sorry, use evaluate to query a value , not to set a value.

/Thomas


Profil
Abmelden
Weblog abonnieren