Using Startup Switches for Application in MOMLast reviewed: September 16, 1996Article ID: Q121866 |
The information in this article applies to:
SUMMARYIt is possible to customize an application so that it performs specific actions when you start it. You can do this by adding specific parameter switches to the Command Line box for the application icon in Program Manager or to the Command Line or Parameters box for the application button on the Microsoft Office Manager (MOM) toolbar. If you use the Run dialog box to run an application from either Program Manager or File Manager, you can also add startup switches following the command line for the application. You must enter these parameters each time you run the application, because these parameters are not saved.
MORE INFORMATIONBy default, the Command Line box in the Program Item Properties dialog box and in the Edit Program Item dialog box contains only the path to and the name of the application's executable file, and the Parameters box in the Edit Program Item dialog box is empty. To add a startup switch for the application, use either of the following methods, depending on how you start your application.
Program ManagerTo modify the icon properties for an application, do the following in Program Manager:
MOM ToolbarDo the following to modify the parameters of a MOM toolbar button:
NOTE: Do not include the < > characters in the actual text that you enter. Word for Windows 6.0, 6.0a:
To start Word Startup Switch
With no document open /n And open an existing document <filename> And run a macro /m<macroname> Without templates or add-ins /a And start the Quick Preview /mHelpQuickPreview And load a Word Link Library (.WLL) /l <WLL filename> Without displaying Tips of the Day /wMicrosoft Excel 4.x, 5.x:
To start Microsoft Excel Startup Switch
Without a new, unsaved workbook /e And open a specific file <filename> And open a specific file read only /r <filename> And specify a default directory /p <directory>Microsoft PowerPoint 3.0:
To start Microsoft PowerPoint Startup Switch
And open a specific file <filename> And run a slide show automatically /s <filename>Microsoft PowerPoint 4.x:
To start Microsoft PowerPoint Startup Switch
And open a specific file <filename> And run a slide show automatically /s <filename>Note: To run a slide show automatically in PowerPoint, the file must be saved as an .LST file from a text editor, such as Notepad. To create a .LST file from Notepad, follow these steps:
All Files *.*.3. Select the Powerpoint presentation you would like to open as a slide show, click OK.Microsoft Access 1.1:
To start Access... Startup Switch
And open a specific database <filename> And open for exclusive access /Excl And open a file read-only /Ro Using a specific user name /User <user name> Using a specific password /Pwd<password> And run a specific macro /X<macro name> And specify a value to be returned by the Access Basic Command function /Cmd <value>Microsoft Access 2.0: (In addition to the switches available for 1.1)
To start Access... Startup Switch
With a specified initialization file /Ini <initialization filename> And compact a specified database /Compact [target file name] And convert a 1.x database /Convert <target file name> And repair a specified database /RepairIt is important that any information that appears in the Parameters box is valid for the individual program. Invalid information causes a variety of error messages when starting an application and may also prevent the application from running. For example, if you enter an application's command line (the executable filename) in the Parameters box, the application will start, and then attempt to open the executable file. You can find information on startup switches for a specific application in Help for each application, as well as in most of the manuals.
REFERENCES"Microsoft Word Quick Results," page 13 "Microsoft Access User's Guide," version 2.0, pages 42-43 "Microsoft Excel User's Guide," version 5.0, pages 647-648
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |