Like most apps, you can introduce Word from the Command Prompt, but Word likewise supports a number of optional switches for controlling the startup process.
Whether you type the command at the timely, use it to produce a shortcut, insert it as part of a batch script, introducing Word with additional parameters lets you do things like start Word in Safe Mode for repairing or start with a particular template.
Utilizing the Command Prompt to Start Word
Before we can open Word using the Command Prompt, we require to find out which directory the winword.exe file is located. You can do this by hand, or you can just have the Command Prompt discover it for you. To do this, go on and open the Command Prompt by opening the start menu and typing “cmd” and choosing the “Command Prompt” application.
When you open the Command Prompt, you’ll remain in the leading tier directory site– your user account folder. We require to dig deeper by going into the Program Files directory site. Do so by entering the following command and then pushing Enter:
cd “program files (x86)”
You’ll now be in the Program Files directory site. The next step is to find the directory where the winword.exe file is located. Do so by typing the following command and pushing “Enter.”
dir winword.exe/ s
As soon as you enter this command, the Command Prompt will find the directory for you.
Now that you know the directory where the winword.exe file lies, you can utilize the cd command to open the file course. In this example, you would require to go into the following command:
cd Microsoft Office root Office16
Now you need to be in the directory where winword.exe lies.
Now, if you want to open Microsoft Word the same method as if you were opening it through its icon, all you must do is type winword and after that press “Enter,” and Word will open its typical method.
Nevertheless, the entire point of utilizing the command is that you can use the different switches and criteria it offers.
Typical Word Command Line Switches and Parameters
Borrowed from the official Microsoft Office support site, here is a list of some possible methods to open Word, together with its respective command.
You can also launch Word in Safe Mode by holding down the Ctrl secret while releasing Word from the Start menu, creating a shortcut with this parameter makes it that a lot easier.
Example: Assume we wanted to open a document kept on the C drive called example.docx, we ‘d type the following command:
/ tc: example.docx
Keep in mind: Do not put a space in between the switch and the name of the file.
Example: To begin Word and open the existing file example.docx, kept on the C drive, enter the following:
/ t c: example.docx
To open multiple files, example.docx and example2.docx, situated in the C drive at when, go into the following:
/ t c: example.docx c: example2.docx
Example: To start Word and produce a new file based on file example.docx, stored on the desktop, get in the following:
/ f “c: Documents and Settings All Users Desktop example.docx
Example: To start Word and open a copy of a file example.docx, saved in a file library at the URL http://MySite/Documents, get in the following:
/ h http://MySite/Documents/example.docx
Note: If the file is had a look at to you, the/ h switch has no result. Word opens the files so that you can edit it.
Example: To start and apply the XSLT MyTransform, saved on the C drive, get in the following:
/ pc: MyTransform.xsl c: Data.sml
Example: To begin Word and load the add-in Sales.dll, saved on the C drive, get in the following:
/ ic: Sales.dll
Keep in mind: Do not include an area in between the switch and the add-in name.
Example: To start Word and after that run the macro Salelead, enter the following:
/ mSalelead
Note: Do not consist of a space between the switch and the macro name.
That’s all there is to it! Now you ought to be able to open Word in any particular way you pick by simply following these commands.
Prior to we can open Word using the Command Prompt, we need to figure out which directory site the winword.exe file is situated. You can do this manually, or you can just have the Command Prompt discover it for you. When you open the Command Prompt, you’ll be in the leading tier directory– your user account folder. The next step is to locate the directory site where the winword.exe file is situated. Now that you know the directory where the winword.exe file is located, you can utilize the cd command to open the file course.
Leave a Reply