Using Startup Switches for Application in MOMID: Q121866
|
It 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.
By 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.
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 /w
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>
To start Microsoft PowerPoint Startup Switch
--------------------------------------------------------------------------
And open a specific file <filename>
And run a slide show automatically /s <filename>
To start Microsoft PowerPoint Startup Switch
--------------------------------------------------------------------------
And open a specific file <filename>
And run a slide show automatically /s <filename>
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>
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 /Repair
"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
Additional query words: 2.00 4.00c 4.20c 4.30c 4.30c-CD 5.00 5.00c 6.00 6.00c
Keywords :
Version : WINDOWS:4.0,4.2,4.3
Platform : WINDOWS
Issue type :
Last Reviewed: May 4, 1999