Some code from Radimus posted in the thread I linked to in my first post.

Code:

Break on

$Outlook = CreateObject("Outlook.Application")
$NS = $Outlook.GetNamespace("MAPI")
$Fldr = $NS.GetDefaultFolder(6)
$Unread = $Fldr.UnReadItemCount
$Outlook = 0
If $unread
?"You have " $unread " unread email messages"
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.