Hi I have a client who connects to Lotus notes with the following command line.
c:\Lotus\Notes6\Notes.exe=L:\notes\Notes6\Notes.ini
This forces Notes to look on a network Drive (L:) for the notes.ini.
The problem is that in my appliacation when I try to execute the command
Call V_SESSION.Initialize
It returns the error stating unable to locate Id File. I beleive this is because it is reading the NOTES.INI file located on the local C drive. If I copy the Notes.Ini from the network drive (L:) to Drive (C:) it works.
Is there a way to force the Com interface to look for a network located Notes.ini rather than locally where it looks now.
Many thanks
Nick
Subject: Overide Local Notes.ini Location
I suspect that the Notes.ini file is located by the OS in the same way as other files where a path hasn’t been specified. i.e. for win32 by first looking in the current sub-dir, then in each sub-dir in turn as specified by the PATH environment variable, before giving up.
Therefore you MAY be able to trick your application by changing the current directory before calling the initialize.
i.e. Assuming this is VB:
Const IniPath = "l:\notes\notes6"
strCurrentPath = CurDir()
ChDrive IniPath
ChDir IniPath
Call V_SESSION.Initialize
ChDrive strCurrentPath
ChDir strCurrentPath
A little smoke and mirrors, and this is completely untested hypothesis, so don’t waste time on it if it’s a big job to recompile everything. Also (obviously) you wouldn’t want to hardcode the path to the ini file. However if you do get it to work, please update this thread.
HTH - Rufus.
Subject: RE: Overide Local Notes.ini Location
Thanks RufusYour A genius it worked like a dream.