Create dynamic .ini file with LS

Hi,

I have the following “problem”. I need to save (and later on use) an .ini file with lotusscript. The thing is that one line in that .ini file should be dynamic (should contain a value from another form in the database). What would be the best way to handle this? Is it possible to have LS write the contents of a page (with a computed value) to a .ini file or are there better options?

Thanks in advance!

Kees van Bemmel

Subject: create dynamic .ini file with LS

Set and getEnvironment should do what you want, but you could write a LS function that reads the Notes.ini file from teh OS and searches for a string to match then manipulate the value, then write it back either as Notes.ini or with some other extension. Just make sure the ID that runs the agent has the rights to access the OS files in the Server Document.If you make the change to the INI file it probably will not take effect until you re-boot the server. Also if you make changes to some of the ini settings you could do serious damage to your server, or client for that matter.

Subject: create dynamic .ini file with LS

Hi Kees,

have a look at profile documents in help - NotesDatabase.GetProfileDocument or @GetProfileField/@SetProfileField.

hth

Tony