how do I use command line to launch Word based on a custom template?

KurtP 0 Reputation points
2024-02-07T14:30:46.42+00:00

I want to end up with a .docx document after specifying a custom template in the command line that starts with WinWord.exe

Microsoft 365 and Office | Word | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Charles Kenyon 3,121 Reputation points Volunteer Moderator
    2024-02-07T16:30:11.9133333+00:00

    Sorry.

    The following does not help. I can't figure it out.

    Why do you need to do this using the Command line?

    See Command-line switches for Microsoft Office support page.

    Example    To start Word with a document based on a template called Myfax.dotx, stored on the C drive, type the following at the command prompt:

    winword.exe /tc:\Myfax.dotx "C:\Documents\MyNewDocument.docx"

    1 person found this answer helpful.
    0 comments No comments

  2. Charles Kenyon 3,121 Reputation points Volunteer Moderator
    2024-02-07T16:57:49.96+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.