I have a customised button on the toolbar that imports an HTML file. This is the signature. The notesdata directory is not c:\program files\ibm\lotus\notes\data but the notesdata directory is in the “document and settings” and then the user profile (different for everyone else.
With lotus script I use session.GetEnvironmentString to get the notes data from the otes.ini
This is the current statement I use: @Command( [FileImport] ; “HTML File” ; @RegQueryValue(“HKEY_LOCAL_MACHINE”;“SOFTWARE\Lotus\Notes”;“DataPath”) + “signatureENG.html” )
The problem is that “DataPath” is not filled in on all register PC. The majority its blank.
I tried to use the %userprofile%\loacl settings\application data\lotus\notes\data but notes can not handle the %userprofile%
Is there a way to get the notesdata with @ Formula?
Thanks,
Boudewijn van Rijnsoever
Subject: Re: What @ Formula could I use to get the notesdata directory.
If you use session.GetEnvironmentString in LS why not use @Enviroment in the Formula language?
Subject: Re: What @ Formula could I use to get the notesdata directory.
Thanks for replying. The @Enviroment options only returns $ variable. SO not the notes data directory.
Subject: Re: What @ Formula could I use to get the notesdata directory
I knew that …
How about:
@RegQueryValue(“HKEY_CURRENT_USER”;“Software\Lotus\Notes\Installer”;“NOTESDATAPATH”)
Subject: How to get this in server end?
I’ve tried different combinations like
Evaluate({@RegQueryValue(“HKEY_LOCAL_MACHINE”;“Software\Lotus\Domino\Installer”;“NOTESDATAPATH”)})
but always get an empty string. I couldn’t find it in server doc either.
Subject: How to get this in server end?
Try
a$ = @RegQueryValue(“HKEY_LOCAL_MACHINE”;“Software\Lotus\Domino”;“DataPath”)