Add more than one attachment in automated agent

I have the following notes agent which allows me to add an attachment to an e-mail.  I want to know wht I have to do to add multiple attachments.

Sub Initialize
     Dim ss As New notessession
     Dim db As notesdatabase
     Dim doc As notesdocument
     Dim rtitem As notesrichtextitem
     Dim object As NotesEmbeddedObject
     
     
     Set db = ss.currentdatabase
     Set doc = db.CreateDocument
     
     doc.SendTo = "core"
     doc.Subject = "Core Report"
     doc.Form = "Memo"
     
     Set rtitem = New notesRichTextItem (doc,"Body")
     Call rtitem.AppendText( "This report contains xxxxxx"  )
     Set object = rtitem.EmbedObject ( EMBED_ATTACHMENT, "", "C:\autoexec.bat", "Additional Message" )
     Call doc.Send(False)
     
End Sub

adamcAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jschwarzCommented:
Copy the line "Set object = ...".  In the new line, list the second file you want to add.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.