Lotus script and environment variables

Hi,

when Im using GetEnvironmentVariable with NotesSession object, I get variable in notes.ini on the Lotus Notes (client).

How can I get variable on the server? I dont want to use SendConsoleCommand method.

Can I force my NotesSession object to switch on the server? I dont see any writeable properties to do it on NotesSession object.

Although my db is on the server, GetEnvironmentVariable gives me Lotus Notes variable (not Domino), why?

So my question is:

  1. Is it possible to get server environmnent variable with db running on workstation without remote console calling?

  2. Second case: (db running on server) Why I get Notes (not Domino) variable, when my db is on server (not on the workstation).

Thanks in advance,

Konrad

Subject: lotus script and environment variables

The database may be on the server, but the code is running on the client. Code that is called using RunOnServer, or scheduled server agents, will use the server’s notes.ini. You DO NOT want local workstations doing a lot of read/writes to the server’s .ini.

Subject: RE: lotus script and environment variables

Stan, Thanks for feedback,I dont want workstations doing a LOT of read/writes - I just want to know how can I (if can I) use LS on the client to read/write server’s notes.ini whithout remote console calling.

Thanks

Konrad

Subject: RE: lotus script and environment variables

Not from code running on the client, no. Why use an environment variable, though? Does the client code really need to know what the server configuration is? If not, then you can store the variable in a profile field instead.