Wednesday, April 12, 2017

Command-line switches in Microsoft Office OneNote 2007

Command-line switches in Microsoft Office OneNote 2007

This article describes the command-line switches that you can use to start Microsoft Office OneNote 2007.

In this article

Use a switch once by adding it to the Run command

Make a switch available for reuse by creating a shortcut

OneNote startup switches

Use a switch once by adding it to the Run command

  1. Do one of the following:

    • In Windows Vista    

      • Click the Start button Button image , and in the Start Search box, type Run, and then press ENTER.

    • In Microsoft Windows XP or Microsoft Windows Server 2003    

      • Click the Start button, and then click Run.

  2. Click Browse to locate the Onenote.exe file.

    By default, the Onenote.exe file of Office OneNote 2007 is located in the following folder:

    C:\Program Files\Microsoft Office\Office12.

  3. Click the Onenote.exe file, and then click Open.

  4. Place the cursor to the right of the closing quotation mark at the end of the path statement.

    Note: Enclose the statement in quotation marks if they aren't already there.

  5. Type a space followed by the switch that you want to use.

    For example, if you want to start Office OneNote 2007 and prevent the splash screen from appearing, type the following in the Open box:

    "C:\Program Files\Microsoft Office\Office12" /nologo

  6. Click OK.

    Note: If you put the switch inside the closing quotation mark and then click OK, an error message appears indicating that the file can't be found.

Top of Page

Make a switch available for reuse by creating a shortcut

To create a shortcut to start OneNote from the Windows desktop, do the following:

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

  2. Click Browse to locate the OneNote.exe file.

    By default, the OneNote.exe file of Office OneNote 2007 is located in the following folder:

    C:\Program Files\Microsoft Office\Office12

  3. Click the OneNote.exe file, and then click OK.

  4. Place the cursor to the right of the closing quotation mark at the end of the path statement.

    Note: Enclose the statement in quotation marks if they aren't already there.

  5. Type a space followed by the switch that you want to use.

    For example, if you want to start Office OneNote 2007 and prevent the splash screen from appearing, type the following in the Type the location of the item box:

    "C:\Program Files\Microsoft Office\Office12" /nologo

  6. In the Create Shortcut dialog box, click Next.

    Note: If you put the switch inside the closing quotation mark and then click Next, you receive an error indicating that the file can't be found.

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

Top of Page

OneNote startup switches

Switch

Description

"filename"

Opens a file, where filename is a fully qualified file name, including the disk and folder path and .one file name extension.

/new

Creates a new section in the currently viewed notebook.

/import "filename"

Imports data from an XML file specified by the filename parameter into OneNote. This command-line switch supports the OneNote 2003 SimpleImporter XML as well as OneNote 2007 XML. For more information about the required format of supported XML files, visit the Microsoft Developer Network (MSDN).

/paste

Pastes the contents of the Clipboard.

/notebookpath "path"

Overrides the default path to the OneNote Notebooks folder that is specified in Filing Rules (Options dialog box, Tools menu).

/backuppath "path"

Overrides the default path to the OneNote backup folder that is specified in Filing Rules (Options dialog box, Tools menu).

/openro "filename"

Opens a file as read-only, where filename is a fully qualified file name, including the disk and folder path and .one file name extension.

/print "filename"

Prints a file, where filename is a fully qualified file name, including the disk and folder path and .one file name extension.

/sidenote

Starts OneNote in a miniature window and opens the Unfiled Notes notebook section. If this section does not exist in the current notebook, it will be created.

/audionote

Starts recording audio on the current page.

/videonote

Starts recording video on the current page. If, in a previous OneNote session, no video capture device was specified, the computer's default video capture device will be used.

/pauserecording

Pauses audio or video recording. When executed, this command-line switch does not start a new instance of OneNote; it merely pauses an active recording session. A paused recording can be resumed by executing /pauserecording a second time.

/stoprecording

Stops recording audio or video. When executed, this command-line switch does not start a new instance of OneNote; it merely stops an active recording session.

/startsharing "password" "filename"

Starts a live sharing session from for the OneNote section file specified, where filename is a fully qualified file name, including the disk and folder path and .one file name extension. The page that was last selected in the OneNote section file will be used as the shared page. Specify any text string for the password parameter. Do not use the same password that you use to log on to your computer or any other personal passwords that you use to access your personal information.

/joinsharing "server" "password" "filename"

Joins a live sharing session, where server is the IP address or the domain name of the computer that is hosting the live sharing session. For the password parameter, use the password that was provided by the person hosting the session. Filename is the name of the OneNote section file from which the page is being shared.

/hyperlink "pagetarget"

Starts OneNote and opens the page specified by the pagetarget parameter. To obtain the hyperlink for any page in a OneNote notebook, right-click its page tab and then click Copy Hyperlink to this Page.

/safeboot

Starts OneNote in Safe Mode. A dialog box with boot options is displayed.

/stationerytaskpane

Displays the Templates task pane.

/applystationery "template"

Applies the specified template file to the current page.

/sendto "filename1" "filename2"

Inserts the contents of the files specified by the filename1 and filename2 parameters on the current page.

/insertdoc "filename" "time"

Inserts the contents of the file specified by the filename parameter as a printout on the current page and adds a time stamp with the time specified by the optional time parameter.


Top of Page

1 comment:

  1. Microsoft Office Tutorials: Command-Line Switches In Microsoft Office Onenote 2007 >>>>> Download Now

    >>>>> Download Full

    Microsoft Office Tutorials: Command-Line Switches In Microsoft Office Onenote 2007 >>>>> Download LINK

    >>>>> Download Now

    Microsoft Office Tutorials: Command-Line Switches In Microsoft Office Onenote 2007 >>>>> Download Full

    >>>>> Download LINK m4

    ReplyDelete