Yahoo Canada Web Search

Search results

  1. People also ask

    • Overview
    • About commands, switches, and parameters
    • Startup command names and locations
    • Use a switch once by adding it to the Run command
    • Make a switch available for reuse by creating a shortcut
    • List of command-line switches for Office products

    When you launch a Microsoft Office product, the startup process runs in a standard way. Microsoft Word, for example, displays the Word splash screen and loads the Normal template. But suppose you want Word to start without its splash screen and then load a template other than the Normal template. Or, you want to customize the process even more by loading an add-in or running a macro upon startup. You can add options like this by using subcommands called command-line switches to an Office app's startup command.

    If you want to use the customization just one time, you can type the command and switch in the Run dialog box (Start menu) in Microsoft Windows. If you want to use a particular switch many times or every time that you start the app, you can create a desktop shortcut that starts the program by using the same switch and parameters. This article describes how to do both. It also includes a table that lists all of the switches and parameters that are available in the desktop Office apps.

    Using a command-line switch doesn't mean you have to type the whole startup command at the command prompt. You can start the Office app as usual, by clicking the program icon on the desktop, or by clicking the program name on the Start menu. All startup methods essentially do the same thing: they run the app's .exe file, even if you don't actually type the command or even see it.

    A command-line switch is a modifier that is added to the .exe file. A startup file with a switch looks like this.

    In this example, a command-line switch has been added to the .exe file for Microsoft Outlook. The switch consists of a forward slash and a word or abbreviation that indicates the switch's action. This switch tells Outlook to launch without showing the Reading Pane.

    A switch is sometimes followed by one or more specific instructions called parameters, which give the program further information about how to run the .exe command. For example, the following command tells Outlook to load a specific profile name upon startup.

    Here are the names of the startup commands for the Office products Word, Excel, PowerPoint, PowerPoint viewer, Outlook, and Access.

    When you use one of the Office startup commands, you must supply the full path to the product's .exe file. Verify the location of this file on your computer. This table shows the locations of the .exe files if you accepted the default folder locations during installation.

    1.In Windows 10, click the Search or Cortana icon in the taskbar, type Run, and then click Command Prompt in the results.

    In Windows 8, press the Windows key, type Run, and then press Enter.

    In Windows 7, click Start, point to All Programs, click Accessories, and then click Run.

    2.In the Run dialog box, type a quotation mark, enter the full path for the app's .exe file, and then type another quotation mark. Alternatively, click Browse to locate and select the file. In this case, the quotation marks are supplied automatically.

    3.After the closing quotation mark, type a space, and then type the switch. For example, you might type:

    The next time you start the app, it opens as usual. To make your customized startup available for repeated uses, see the next section.

    1.Right-click the Windows desktop, point to New, and then click Shortcut on the shortcut menu.

    2.In the Create Shortcut Wizard, in the Type the location of the item box, type a double quotation mark ("), enter the full path for the app's .exe file (including the file name), and then type another double quotation mark. (Alternatively, click Browse to locate and select the file. In this case, the quotation marks are added automatically.)

    3.Following the closing quotation mark, type a space, and then type the switch and any parameters. If the parameter is a path to a location on your computer, and the path contains a space, it also must be enclosed in quotation marks. For example:

    4.Click Next.

    5.In the Type a name for this shortcut box, type a name for the shortcut, and then click Finish.

    The wizard creates the shortcut and places it on the desktop.

    Each Office product has a different set of command-line switches.

    Note: These lists don't include all switches added since Office 2007. If you use command-line switches and want information about newer switches that are available, please respond Yes or No to the "Was this information helpful" question at the end of this topic. Then, in the box that appears, tell us which Office product and version you're interested in.

    Here are the command-line switches that are available for PowerPoint.

    Here are the command-line switches that are available for PowerPoint Viewer.

    Switch

    Description

  2. It is possible to open a word document from the command line using this: rundll32 url.dll,FileProtocolHandler path.to.word.document.doc Unfortunately, that document needs an external data source, so the path of that data source has to be set manually once it is opened.

  3. Use the arrow keys to place the cursor where you want to copy the text or graphic, and then press Enter to copy, or press Esc to cancel. Ctrl+F2: displays the print preview area on the Print tab in the Backstage view. Alt+Shift+F2: saves the document. Ctrl+Alt+F2: displays the Open dialog box. F3.

  4. Nov 6, 2023 · Open Command Prompt. First, open the Command Prompt on your PC by typing “cmd” in the Windows Search bar and then selecting “Command Prompt” from the search results. You may also enter "cmd" into a Run box (Windows + R) if you prefer that. With the Command Prompt opened, you’re ready to find and open your file.

  5. Mar 20, 2023 · Kindly use this command: WINWORD.EXE /LOADADDIN "path_to_your_addin.dll" Change "path_to_your_addin.dll" to the full path to your add-in's DLL file. Ensure you include the quotes around the path if it contains spaces. Best Regards, Femi. Hello there, Thank you for your response. This solution did not work for me.

  6. Mar 15, 2013 · Command line to open a Word file located in a server using Word from the terminal Hello, I'm looking to open in Word a .doc file located in a server through http directly from the terminal.

  1. People also search for