Tips on creating agent that automatically creating 100000 test documents

i was asking on view optimzation, someone suggested that I can use an agent to create dummy documents. I am bit lost on where to start and how to program it, does this require scripting or suffice with simple agent? just curious , how to control the looping to stop at 100000 documents?

tq in advance

Subject: Tips on creating agent that automatically creating 100000 test documents

Use script. This is a very simple script:

dim s as new notessession

dim db as notesdatabase

set db = s.currentdatabase

dim doc as notesdocument

for i = 1 to 100000

set doc = db.createdocument

'add fields

call doc.save(true, true)

Next

Subject: RE: Tips on creating agent that automatically creating 100000 test documents

tq, Dan, really appreciates that. My employer been persuaded by this IT Mgr who is planning to migrate to Microsoft share point, after 2 years, only now they are migrating to MS Outlook? applications? don’t know yet.

tq.