Agent for creating new copy of server copy on workspace

Hi Everyone,I have a question that how can i create a local new copy of the mail file from server copy>(Just Like using new > Application > new copy)But i doesn’t want to create it manually. I want to create it through agent.

I want to create a form where i put some field like Mail server Name, Mail File Location and want to create a button where i put my agent code,When user fill server name and mail file path of the server copy, Click this button and agent create a new copy of the server copy(In local) without any acl entry.

If someone have any idea, Could you help me for this issue.

Subject: Create new copy

Use the:db.CreateCopy ( “”, filepath ) ’ for an empty copy

or

db.CreateFromTemplate ( “”, filepath, False ) ’ for a full copy

methods of the notesdatabase object.

Thierry Cayla

http://dominoeffects.serveblog.net