OL2002: Additional Command-Line Switches (296192)



The information in this article applies to:

  • Microsoft Outlook 2002

This article was previously published under Q296192
WARNING: Any use by you of the command-line switches provided in this article is at your own risk. Microsoft provides these command-line switches without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

SUMMARY

The Microsoft Outlook Help file contains an entry that lists command-line switches, which you can use to start Outlook in a specific mode or with a specific form.

This article lists additional command-line switches that are not included in the Outlook Help file.

MORE INFORMATION

Use the following steps to determine the path to Outlook:
  1. Click Start, point to Find, and then click Files or Folders.
  2. In the Named box, type Outlook.exe, and then click Find Now.
  3. Note the path to the Outlook executable for reference. For example, the following is the default path:

    C:\Program Files\Microsoft Office\Office10\Outlook.exe

  4. On the File menu, click Close.
Use the following steps to use a command-line switch:
  1. Click Start, and then click Run.
  2. In the Open box, type the complete path noted in step 3, including the file name. Press the SPACEBAR once, and then type the forward slash (/) followed by the command-line switch.
For example, if you want to use the /Cleanreminders switch, the command-line should read as follows:

"C:\Program Files\Microsoft Office\Office10\Outlook.exe." /Cleanreminders

NOTE: The full path needs to be in quotation marks to preserve long filenames.

Command-Line switch              Purpose
-------------------              -------

/CleanFreeBusy                   Cleans and regenerates free/busy information.

/CleanReminders                  Cleans and regenerates reminders.

/CleanViews                      Restores default views.

/ResetFolders                    Restores missing folders for the default delivery location.

/ResetFolderNames                Resets the language of the default folders to the language of the Outlook client.

/ResetOutlookBar                 Rebuilds the Outlook Bar.

/NoPreview                       Turns off the Preview pane at startup.

/CleanSchedPlus                  Deletes all Schedule+ data (free/busy, permissions, and .cal file) from the server.

/Safe                            Starts Outlook without extensions, preview pane, or toolbar customization.

/Recycle                         Activates an existing Outlook window.

/Folder                          Opens new window in "folder" mode (Outlook Bar and Folder List off).

/Profiles                        Shows MAPI Profiles dialog box regardless of the options setting on the Tools menu.

/Profile <profilename>           Loads specified profile. (If your profile contains a space, Outlook may treat it as 
                                 an invalid profile name when using this switch. Work around this by wrapping the
                                 profile name in quotes.) 

/s <filename>                    Loads specified shortcuts file (.fav file).

/f <msgfilename>                 Opens <msgfilename>.

/p <msgfilename>                 Prints <msgfilename>. Same as /f except is associated with the print verb instead of open.

/Embedding <msgfilename>         Used to open a .msg file as an OLE embedding. Standard OLE command-line argument.

/c <messageclass>                Creates a new item of the specified message class (Outlook forms or any other valid MAPI
                                 form).

/a path:\<filename>              Opens a new e-mail message with the specified file attached.

/importprf <path\.prf filename>  Creates an Outlook profile based on the information in the specified .prf file.
					

REFERENCES

For more information about other command-line switches, click Microsoft Outlook Help on the Help menu, type Control what happens when you start Outlook in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MinorLast Reviewed:2/4/2003
Keywords:kbhowto KB296192