Improving Your Outlook

A typical use for command-line switches is to automate some of the daily tasks you perform in Outlook. For example, you can use command-line switches to email your boss a report every day. You can then create a batch file that executes the command-line switch and emails the report at the same time every day.

To email a report named DailyBookings.xls, stored on the C drive, to Sally@email.com, create a batch file with the following command-line code:

outlook.exe /c ipm.note /m sally@email.com c:\DailyBookings.xls

This might not look like a typical command-line switch. The /a is missing before the path to the attachment, but in Outlook 2003, this is the command-line switch you need to use. After that batch file is saved, ...

Get Special Edition Using® Microsoft® Office Outlook® 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.