Microsoft KB Archive/156982

= OL97: Additional Command-Line Switches =

Article ID: 156982

Article Last Modified on 8/28/2007

-

APPLIES TO


 * Microsoft Outlook 97 Standard Edition

-



This article was previously published under Q156982



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.

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.



SUMMARY
The Microsoft Outlook Help file contains an entry ("Control what happens when you start Outlook") 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 Help topic.



MORE INFORMATION
To use command-line switches, follow these steps:
 * 1) In Windows 95/98 or Windows NT Workstation 4.0, use the right mouse button to click the Outlook icon, click Properties, and then click the Shortcut tab.

In Windows NT Workstation 3.51, click the Outlook icon, and then click Properties on the File menu.
 * 1) In the Target box or the Command Line box, type the path to the Outlook executable file, type a space after the path, and then type one or more of the command-line options listed below.

NOTE: If any path listed in the Target box (or Command Line box) contains spaces, such as C:\Program Files, you must enclose the path in quotation marks and use the correct case for each character in the path. The command-line switch must be typed outside the quotation mark.

Alternate Method
If you used the software patch to replace the Microsoft Exchange Client Inbox on the Windows 95 or Windows NT Workstation 4.0 desktop with an Outlook shortcut and no longer have the client icon, perform the following steps:  Click Start, and then click Run. In the Open box, type Outlook.exe, a space, and the command-line switch.

Example: Outlook.exe /cleanreminders

  Click OK.

NOTE: The advantage of this method is that you do not have to go back and remove the command-line switch from the path of the shortcut.   Command-Line Switch      Purpose ---     ---

/Cleanfinders           Clears saved searches on the Microsoft Exchange Server.

/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.

/ResetOutlookBar        Rebuilds the Outlook Bar.

/CleanSchedPlus         Deletes all Schedule+ data (free/busy,                            permissions, and .CAL file) from the server and allows the free/busy information from the Outlook Calendar to be used and viewed by all Schedule+ 1.0 users. 

        /Regserver               Rewrites all Outlook specific registry keys and re-associates file extensions without having to reinstall Outlook or                                  run setup with the /y switch. The settings are stored in the Outlook.SRG file located in the same folder as the Outlook application.

/Unregserver            Similar to /Regserver, except it deletes all registry keys and file associations for Outlook. Its actions are based on the Outlook.SRG file located in the same folder as the Outlook application. Use the /regserver switch to rewrite the registry keys and file associations after using this command line switch.

