介绍一些Word启动的命令行参数

  之前介绍过《创建Word快捷方式快速访问上次打开的文档》,涉及到了Word的启动参数/mfilen,在某些时候确实能够使得工作效率大大提高,那么我们就会想是否还有其他的一些启动参数呢,下面列出微软官方给出的适用于Word 2010, Word 2007, Word 2003, Word 2002, 以及 Word 2000的一些参数。

Word启动参数列表

下列参数在 Word 帮助文件中有列出。

TypeTo do this
/aStarts Word and prevents add-ins and global templates (including the Normal template) from being loaded automatically.The /a switch also locks the setting files; that is, the setting files cannot be read or modified if you use this switch.
/laddinpathStarts Word and then loads a specific Word add-in.
/mStarts a new instance of Word without running any AutoExec macros.
/mmacronameStarts Word and then runs a specific macro. The /m switch also prevents Word from running any AutoExec macros.
/nStarts a new instance of Word with no document open. Documents opened in each instance of Word will not appear as choices in the Window menu of other instances.
/safeStarts Word in Safe Mode.
/ttemplatenameStarts Word with a new document based on a template other than the Normal template.
/wStarts a new instance of Word with a blank document. Documents opened in each instance of Word will not appear as choices in the Window menu of the other instances.
(no switch)A new Word window is opened with a blank document using the existing instance of the Word program.

下列参数在 Word 帮助文件中为列出。

TypeTo do this
/cStarts a new instance of Word and then invokes NetMeeting.
/qStarts Word without displaying the Word splash screen. This switch is only available in Word 2000 Service Release 1 (SR-1).
/rStarts Word, starts Setup, makes changes in the Windows registry, and then quits. This switch forces a re-register of Word in the Windows registry.
/uHas no effect and does not start Word.
/xStarts a new instance of Word from the operating shell (for example, to print in Word). This instance of Word responds to only one DDE request and ignores all other DDE requests and multi-instances. If you are starting a new instance of Word in the operating environment (for example, in Windows), it is recommended that you use the /w switch, which starts a fully functioning instance.
/zThis is similar to the /t switch. However, this switch raises the New event. For example: winword.exe /z mytemplate.dot. For more information, visit the following MSDN Web site:

pathname\filenameStarts Word with a specific document open.Note To open multiple files at once, use pathname\filename.

Example: "C:\Program Files\Microsoft Office\Office\Winword.exe" c:\filename1.doc c:\filename2.doc

(any other switch)Starts a new instance of Word. For example, if you start Word with just the / and no switch, or with any unlisted switch combination, Word just starts a new instance of Word with a new blank document.

下列参数在 Wrod 2000的帮助文件中有列出,但不包含于 Word 2002 和 Word 2003 的帮助文件。

TypeTo do this
/mfilenStarts Word and then opens the specified file on the Most Recently Used (MRU) list on the File menu.

下列参数仅限于 Word 2007 和 Word 2010。

TypeTo do this
/fStarts Word with a new document based on an existing file.
/h http://filenameStarts Word and opens a read-only copy of a document that is stored on a Microsoft Windows SharePoint Services site. The site must be on a computer that is running Microsoft Windows SharePoint Services 3.0 or Windows SharePoint Services 2.0.
/tfilenameStarts Word and opens an existing file.
/pxsltStarts Word and opens an existing XML document based on the specified Extensible Stylesheet Language Transformation (XSLT).
Note XSLT: A file that is used to transform XML documents into other types of documents, such as HTML or XML. It is designed for use as part of XSL.

具体的参数作用,本人的渣英文就不强行翻译了,而且英文更加适合理解其本来意思。

原始内容参见Microsoft Support

有人爱: 醉倚黄昏
有事做: https://zyhh.me/windows/word-command-line-switches.html
有所期待: 一个有雨有肉的夜晚,和你没头没尾分一瓶酒。
评论 (2)
  1. # 1
    大发 2013-08-20 16:32

    毕业论文我都没用这货