hcl-bot
November 22, 2007, 4:12pm
1
Notes Admin Asked me to design a button for user to click and send email back to Admin for the path of Local Database Folder.
For example, my Local Database Folder is:
“C:\Documents and Settings\guoj\lotus\notes\data”
Is there anyway I can write a code to get this full path of Local Database Folder from User Preference or Notes.ini ?
Thanks
Jordan
hcl-bot
November 22, 2007, 11:59pm
2
Subject: How to get “Local Database Folder” ?
I think you could use notesSession.GetEnvironmentString(“Directory”), @environment will not do here, as I think it would give only user defined variables or ones prepended with “$”
hcl-bot
November 23, 2007, 12:02pm
3
Subject: RE: How to get “Local Database Folder” ?
It didn’t work. NotesSession.GetEnvironmentString(“Directory”) return “”.
Got a empty string.
What is wrong with the function?
hcl-bot
November 27, 2007, 5:44am
4
Subject: RE: How to get “Local Database Folder” ?
You need to use NotesSession.GetEnvironmentString(“Directory”, True) since Directory is a system variable (not prepended with $).
There is excellent documentation on this in Domino Designer Help.
/Peter