Why doesn't updating Location document change notes.ini?

I have an external (VB) app that reads notes.ini to get the name of my mail database (GetEnvironmentVariable MailServer and MailFile). BUT, if I set my Location document to point to local replica of my mail, it doesn’t update notes.ini, so the external app still looks at the server because MailServer isn’t blank. This causes problems if the name of the database is different locally compared to the server (or it’s located outside the Notes data directory). Can anyone tell me what else I should be looking help.

Thanks.

Subject: Isn’t there a specific OLE automation call…

…to get the user’s current mail file? notesDbDirectory.OpenMailDatabase?

Subject: A bit late reply, perhaps but I try anyway…

See this ressource:nsftools - Lotus Notes and Domino Tips

And here, it explains:

C:\Notes\Notes.exe MAIL

Opens the default mail database on the Notes client

Avoid hardcoding, of course. Today, I reckon this will work (Notes Executable path probably in PATH variable):

notes MAIL

You can test in Windows, using the Start/Run command entry, as you would with Notes URLs.

Cheers

Subject: One more environment variable to check

MailType=1 means localMailType=0 means mail is on server.