create email with 2 attachments

A

Al

Hi all, I need to create an email from a batch script with 2
attachments.

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /c
ipm.note.testform /a "c:\file1.xls"

works perfectly, but only adds 1 attachment. how do I modify the above
command to include 2 attachments?

Thanks.

Al
 
R

Roady [MVP]

You can't. Either use a zip-command first to compress multiple files into a
single zip-file and attach that or use a script language which can use the
Outlook Object Model to programmatically create a new email and add the
attachments.
 
Top