How to get "Local Database Folder"?

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

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 “$”

  • Sudhir

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?

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