Easy question about agents

Is there a way to run an agent or process that uses the current open database without having to copy the agent into the database?

I have a simple agent that using the current database, find the notes document via notesid, and deletes it. I have quite a bit of databases that just need one or two documents removed via notesid (since they are profile documents).

code-begin{

dim session as notessession

dim db as notesdatabase

dim pf as notesdocument

set session = new notessession

set db = session.currentdatabase

set pf = db.getdocumentbyid(inputbox)

pf.remove(True)

code-end}

I know I can just make a list of database paths and iterate through the list but I want to create something more administrator focused. If I can do it with this code I can imploy the same code to all my agents or process I want flexability with.

thanks,

Subject: Just put the code behind a SmartIcon.

Subject: easy question about agents

  1. write an agent that run your agent.2. use this tool. http://www.systbs.com/Pages/Starter.aspx

Regards

Tamir Ben Shoshan

http://www.systbs.com

SharePoint & Lotus plugins & Notes CAPI