I think you want something along these lines:
code:
$Root = CreateObject("Outlook.Application")
$Root.SendAndReceive
$NewMailCount=$Root.NumberNewMail
$root.quit

However, don't know what COM functions Outlook offers.

[ 08. December 2002, 22:35: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.