Running a Microsoft Office saved search (.oss) via the CLI /f switch - slight blemish in MS docs

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top