How to get the server name and filepath of the database using lotus script with agents

Hi

I need to get the server name and filepath of the database using lotus script using an agent.

How do i do this? Please help…

Regards,

Sai.

Subject: How to get the server name and filepath of the database using lotus script with agents.

use the Server and FilePath properties of NotesDatabase class

Subject: RE: How to get the server name and filepath of the database using lotus script with agents.

hi ,

Thanks for the reply. I have used them already.But here I need to get the server name and file path dynamically. i should not set any value to them.

Regards,

Sai.

Subject: RE: How to get the server name and filepath of the database using lotus script with agents.

What do you mean dynamically?

you can get the database from Notessession or Notesuiworkspace classes and get those properties (detailed information is available on notes help)

if this doesn’t solve your problem, post your code example and details of what you want to exactly do

Subject: RE: How to get the server name and filepath of the database using lotus script with agents.

Does NotesSession.CurrentDatabase serve the “dynamic” requirements well enough?

Subject: How to get the server name and filepath of the database using lotus script with agents.

Look up NotesDatabase object in designer help.