Setting the "Names" environment variable with script

Hi there,

I’d like to automatically change the “Names” environment variable in the Notes.ini but read on here that you cannot do with using formulae because of the problem where it creates a new variable and puts a “$” before it.

Someone here said you can do it with script. I was wondering if someone could provide me with an example of some script I could use to modify system elements in the notes.ini?

Many thanks for any help!

Alex

Subject: Setting the “Names” environment variable with script

Call notesSession.SetEnvironmentVar( name$, valueV [, issystemvar] )

i.e.

Dim Session As New NotesSession

Call Session.SetEnvironmentVar( “NAMES”, “myaddressbook.nsf” ,true )

HTH - Rufus.

Subject: Works a treat - thank!!!