Find The Notes Program Directory

We all know how to get the Notes Data diectory ....

If one wants to find the Notes Program directoty !?

The following code is implemented as LS function and will return the Notes
Program directory.

This code uses "Notes undocumented API feature".
========================================================================
Following code should be put in "Declaration" section of the object which uses
this function.

Declare Function OSGetExecutableDirectory Lib "NNOTES.DLL" Alias
"OSGetExecutableDirectory" (_
Byval DirName As String,_
Byval Size As Long) As Long
=========================================================================

Function GetNotesProgramDirectory As String
Dim DirPath As String*512
Dim Size As Long
Dim Handle As Long

GetNotesProgramDirectory=""

Handle=OSGetExecutableDirectory(DirPath,Size)

GetNotesProgramDirectory=DirPath
End Function

Dig Deeper on Domino Resources

SearchWindowsServer

Search400

  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close