A
anewton_lists
Just sharing some info . . . .
I've been trying trying to open a Microsoft Office saved search (.oss)
from the command line via the /f switch.
On the MS site where Outlook 2003 command line switches are listed --
http://office.microsoft.com/en-us/assistance/HP010031101033.aspx -- I
found the following:
/f msgfilename - Opens the specified message file (.msg) or Microsoft
Office saved search (.oss).
I tried running the following from the command line:
"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /f
"C:\Documents and Settings\myusername\My
Documents\Email\Delete_Automated_CVS_Build_Emails.oss"
but Outlook failed to open with the following error msg:
"Cannot start Microsoft Office Outlook. Unable to read the item."
After a little snooping of my task processes while running a search in
the GUI, turns out that I was calling the wrong application -
OUTLOOK.EXE. Instead, I needed to invoke FINDER.EXE like so:
"C:\Program Files\Microsoft Office\OFFICE11\FINDER.EXE" /f
"C:\Documents and Settings\myusername\My
Documents\Email\Delete_Automated_CVS_Build_Emails.oss"
This works like a charm.
I've been trying trying to open a Microsoft Office saved search (.oss)
from the command line via the /f switch.
On the MS site where Outlook 2003 command line switches are listed --
http://office.microsoft.com/en-us/assistance/HP010031101033.aspx -- I
found the following:
/f msgfilename - Opens the specified message file (.msg) or Microsoft
Office saved search (.oss).
I tried running the following from the command line:
"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /f
"C:\Documents and Settings\myusername\My
Documents\Email\Delete_Automated_CVS_Build_Emails.oss"
but Outlook failed to open with the following error msg:
"Cannot start Microsoft Office Outlook. Unable to read the item."
After a little snooping of my task processes while running a search in
the GUI, turns out that I was calling the wrong application -
OUTLOOK.EXE. Instead, I needed to invoke FINDER.EXE like so:
"C:\Program Files\Microsoft Office\OFFICE11\FINDER.EXE" /f
"C:\Documents and Settings\myusername\My
Documents\Email\Delete_Automated_CVS_Build_Emails.oss"
This works like a charm.