• Follow us

Internet

How (and Why) to Start Microsoft Word from the Command Prompt

word logo

Like most apps, you can launch Word from the Command Prompt, but Word also supports several optional switches for controlling the startup process.

Whether you type the command at the prompt, use it to create a shortcut, insert it as part of a batch script, launching Word with additional parameters lets you do things like start Word in Safe Mode for troubleshooting or start with a specific template.

Using the Command Prompt to Start Word

Before we can open Word using the Command Prompt, we need to figure out which directory the winword.exe file is located. You can do this manually, or you can just have the Command Prompt find it for you. To do this, go ahead and open the Command Prompt by opening the start menu and typing “cmd” and selecting the “Command Prompt” application.

Open Command Prompt in Start Menu

When you open the Command Prompt, you’ll be in the top tier directory—your user account folder. We need to dig deeper by going into the Program Files directory. Do so by entering the following command and then pressing Enter:

cd\”program files (x86)”

Program Files in Command Prompt

You’ll now be in the Program Files directory. The next step is to locate the directory where the winword.exe file is located. Do so by typing the following command and pressing “Enter.”

dir winword.exe /s

Once you enter this command, the Command Prompt will locate the directory for you.

Winword directory

Now that you know the directory where the winword.exe file is located, you can use the cd command to open the file path. In this example, you would need to enter the following command:

cd Microsoft Office\root\Office16

Now you should be in the directory where winword.exe is located.

Open Winword file

Now, if you want to open Microsoft Word the same way as if you were opening it via its icon, all you must do is type winword and then press “Enter,” and Word will open its usual way.

Open Normal Word

However, the whole point of using the command is that you can use the different switches and parameters it offers.

Common Word Command Line Switches and Parameters

Borrowed from the official Microsoft Office support site, here is a list of some possible ways to open Word, along with its respective command.

Switch and Parameter Description /safe Starts Word in Safe Mode. This launches Word without any additional add-ins, templates, and other customizations. It’s helpful when troubleshooting problems in Word.

You can also launch Word in Safe Mode by holding down the Ctrl key while launching Word from the Start menu, creating a shortcut with this parameter makes it that much easier.

/q Starts Word without displaying the Word Splash screen. /ttemplatename Starts Word with a new document based on a template other than the Normal template.

Example: Assume we wanted to open a document stored on the C drive called example.docx, we’d type the following command:

/tc:\example.docx

Note: Do not put a space between the switch and the name of the file.

/t filename Starts Word and opens an existing file.

Example: To start Word and open the existing file example.docx, stored on the C drive, enter the following:

/t c:\example.docx

To open multiple files, example.docx and example2.docx, located in the C drive at once, enter the following:

 

/t c:\example.docx c:\example2.docx

/f filename Starts Word with a new document based on an existing file.

Example: To start Word and create a new document based on file example.docx, stored on the desktop, enter the following:

/f “c:\Documents and Settings\All Users\Desktop\example.docx

/h http://filename Starts 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 Word 2007 or later or Windows SharePoint Services 2.0 or later.

Example: To start Word and open a copy of a file example.docx, stored in a document library at the URL http://MySite/Documents, enter the following:

/h http://MySite/Documents/example.docx

Note: If the document is checked out to you, the /h switch has no effect. Word opens the files so that you can edit it.

/pxslt Starts Word and opens an existing XML document based on the specified XSLT.

Example: To start and apply the XSLT MyTransform, stored on the C drive, enter the following:

/pc:\MyTransform.xsl c:\Data.sml

/a Starts Word and prevents add-ins and global templates (including the Normal template) from being loaded automatically. The /a switch also locks the settings files. /ladd-in Starts Word and then loads a specific Word add-in.

Example: To start Word and load the add-in Sales.dll, stored on the C drive, enter the following:

/ic:\Sales.dll

 

Note: Do not include a space between the switch and the add-in name.

/m Starts Word without running any AutoExec macros. /mmacroname Starts Word and the runs a specific macro. The m/ switch also prevents word from running any AutoExec macros.

Example: To start Word and then run the macro Salelead, enter the following:

/mSalelead

 

Note: Do not include a space between the switch and the macro name.

/n Starts a new instance of Word with no document open. Documents opened in each instance of Word will not appear as choices in the Switch Windows list of other instances. /w Starts a new instance of Word with a blank document. Documents opened in each instance of Word will not appear as choices in the Switch Windows list of other instances. /r Re-register Word in the Windows registry. This switch starts Word, runs Office Setup, updates the Windows registry, and the closes. /x Starts Word from the operating system shell so that Word responds to only one DDE request (for example, to print a document programmatically). /ztemplatename Visibly behaves exactly like the /t switch. However, you can use the /z switch with Word to generate both a Startup and a New event, whereas the /t switch generates only a Startup event.

That’s all there is to it! Now you should be able to open Word in any specific way you choose by simply following these commands.

RELATED: How to Run Command Prompt Commands from a Windows Shortcut

Read More



Leave A Comment

More News

Latest ITProPortal news

Why data breaches in the health space herald New! 2019-06-26 05:00:30Now is the time for health care organisations to adopt a rigorous KYP procedure.

The impact of SD-WAN adoption on digital transformation New! 2019-06-26 04:30:13Insight into how SD-WAN is changing IT teams.

Five myths you have been told about industrial 2019-06-26 04:00:07Debunking a few common myths about AI for industrial use.

Global telcos under attack, state-sponsored groups in the 2019-06-25 08:00:22Fingers are being pointed to the Chinese, again.

AWS Security Hub now available 2019-06-25 07:30:03Organisations can now handle all security and compliance issues in one place.

Cyber security skills gap: An industry in crisis 2019-06-25 07:00:22Symantec CTO Darren Thomson on tackling the critical skills gap

Security firms are losing out when it comes 2019-06-25 07:00:03They're losing out - and some are simply losing it.

The unexpected entrepreneurial lessons I learned from the 2019-06-25 06:30:20The army might seem like the last place to learn about how to succeed in start ups...

Brexit is the biggest concern for UK tech 2019-06-25 06:30:12IT pros are still worried about the potential effects of Brexit on their industry, despite the overall “encouraging optimism”

What is the cloud and how will it 2019-06-25 06:00:45The impact of the cloud on customer experience and the hospitality industry.

CIOs and IT directors missing out on valuable 2019-06-25 05:30:14Voice data locked away and inaccessible for AI analytics, customer service improvements and future-proofing.

Can disaggregation help businesses avoid the next IT 2019-06-25 05:00:13The multi or single source dilemma now plays a leading role in IT outsourcing decision making.

TechRadar: Internet news

Cheap Google Pixel 3 XL deals - pay New! 2019-06-26 13:40:15One of the world's best phones at a pixel of a price. Get these Google Pixel 3 XL deals before they're gone.

India vs West Indies live stream: how to New! 2019-06-26 13:29:33Can the Windies pull off a surprise against the impressive India at Old Trafford? Find out how to live stream this India vs West Indies 2019 World Cup

Huawei telecom equipment 'more likely to have flaws New! 2019-06-26 13:14:23A new report from a relatively unknown cybersecurity company is making big claims about the security of Huawei's telecom equipment.

Vizio's Dolby Atmos soundbar surround system hits the New! 2019-06-26 12:19:02US giant makes takes its first steps into the UK market

Amazon's first Prime Day deal: save 40% on New! 2019-06-26 12:09:05Amazon has released its first Prime Day deal with a $120 price cut on the Toshiba 43-inch smart Fire TV.

The best Asus laptops of 2019 New! 2019-06-26 12:01:50Asus makes a wide range of laptops for all kinds of budgets and uses. Here's our pick of the best.

Get premium video editing software Digitary VideoProc completely New! 2019-06-26 11:50:35A special offer on this powerful video processing suite, exclusively for TechRadar readers.

Mysterious 16-core AMD Ryzen chip appears on leaked New! 2019-06-26 11:43:28An unknown 16-core AMD processor has appeared on Geekbench, dominating the Intel Core i9-9980XE

Amazon Prime Day deals 2019: everything you need New! 2019-06-26 11:28:33If you're looking to save money with the best Amazon Prime Day deals, we have the official date and start time for the 2019 shopping event.

Buying the perfect budget TV: how to get New! 2019-06-26 11:09:11We’re all strapped for cash – so what should we be demanding of our budget TV sets?

Insane £11/pm unlimited data SIMO among Three's half-price New! 2019-06-26 10:45:00Get six months half price and save loads on your unlimited data mobile deal - iPhones, Samsung phones, Huawei, Pixel and SIM only deals all included.

Surface Book 3: what we want to see New! 2019-06-26 10:29:17Taking a closer look at the possibilities of a Surface Book 3 in the face of little to no early information just yet.

TechCrunch » Enterprise

Snowflake co-founder and president of product Benoit 2019-06-25 12:00:40When it comes to a cloud success story, Snowflake checks all the boxes. It’s a SaaS product going after industry giants. It has raised bushels o

Orderful nabs $10M from A16Z to modernise the 2019-06-25 09:08:13The march of globalization continues unabated, and with it comes a growing demand for companies of all sizes to communicate with and sell to each othe

Tundra, the zero-fee wholesale marketplace, picks up $12 2019-06-25 08:39:16Tundra, a new zero-commission wholesale marketplace, has today announced the close of $12 million in Series A funding. The round was led by Redpoint&r

Showpad, a sales enablement platform for presentations and 2019-06-25 06:12:57Sales teams have long turned to tech solutions to help improve how they source leads, develop relationships and close deals. Now, one of the startups

Comscore raises $20M with an option to bump 2019-06-24 11:16:05Comscore’s name is usually in the news because of its widely-cited research and stats around media traffic and other analysis charting digital c

Gartner finds RPA is fastest growing market in 2019-06-24 09:59:13If you asked the average person on the street what Robotic Process Automation is, most probably wouldn’t have a clue. Yet new data from Gartner

Three years after moving off AWS, Dropbox infrastructure 2019-06-21 11:35:29Conventional wisdom would suggest that you close your data centers and move to the cloud, not the other way around, but in 2016 Dropbox undertook the

Get your early-bird tickets to TC Sessions: Enterprise 2019-06-20 16:00:41In a world where the enterprise market hovers around $500 billion in annual sales, is it any wonder that hundreds of enterprise startups launch into t

Transitioning from engineering to product with Adobe’s Anjul 2019-06-20 13:05:14Many roles inside of startups and tech companies are clear: marketers market, salespeople sell, engineers engineer. Then there are the roles like &ldq

Daily Crunch: Slack makes its Wall Street debut 2019-06-20 12:42:22The Daily Crunch is TechCrunch’s roundup of our biggest and most important stories. If you’d like to get this delivered to your inbox ever

Machine learning for everyone startup Intersect Labs launches 2019-06-20 12:30:02Machine learning is the holy grail of data analysis, but unfortunately, that holy grail oftentimes requires a PhD in Computer Science just to get star

Slack opens at $38.50, a pop of 48% 2019-06-20 12:12:38Slack, the workplace messaging platform that has helped define a key category of enterprise IT, made its debut as a public company today with a pop. T

Digital Trends

Walmart drops a killer $700 discount on the New! 2019-06-26 13:56:28Looking for a high-end smart TV? Walmart is currently offering the 65-inch Samsung 4k Ultra HD Smart Quantum LED HDR TV for only $1,299, which is a ma

Google will now auto-delete your location history (if New! 2019-06-26 13:40:07Under fire for the sheer amount of personal data it collects, Google will finally allow you to auto-delete your activity and location history, the com

Samsung could launch a clamshell-style foldable phone in New! 2019-06-26 13:24:38While Samsung attempts to remedy its issues with the Galaxy Fold, the company may be planning a second foldable phone, which could launch as soon as t

A Netflix data scientist taught an A.I. to New! 2019-06-26 13:16:08A senior data scientist at Netflix has taught an A.I. algorithm to recognize kissing scenes in movies. Here's why it could turn out to be a very usef

Walmart drops $100 discount on the Samsung Galaxy New! 2019-06-26 13:10:47If you’re looking to buy a premium smartphone, the Samsung Galaxy S10 is a solid bet. Right now, Walmart is offering the unlocked version of thi

Audi’s 429-horsepower SQ8 TDI proves diesels don’t have New! 2019-06-26 13:08:42The Audi SQ8 TDI is a sportier version of the Audi Q8 SUV. Its diesel powertrain means the SQ8 TDI won't come to the United States, but it will give

The best iRobot Roomba robot vacuum deals for New! 2019-06-26 12:15:29Keep your home clean without lifting a finger using a robot vacuum cleaner. These nine iRobot Roomba deals not only help you keep your home tidy, but

Apple News wants to tell you all about New! 2019-06-26 12:13:37The Democratic Presidential Debates are just around the corner. You probably are familiar with a few of them, but knowing all of them is tough. Apple

HTC Vive Cosmos: Hardware, games, price, release date, New! 2019-06-26 12:11:52The HTC Vive Cosmos headset is a premium VR device equipped with a modular design and ease-of-use when setting up. Here is everything we know about th

YouTube now gives you more control over the New! 2019-06-26 12:00:59If you've ever wished for greater control over the videos that YouTube suggests, it's your lucky day: The company is bringing new features that let

Apple’s 10.5-inch iPad Air with Wi-Fi is on New! 2019-06-26 11:50:48Now that Summer is here, it's the perfect time to catch up on summer reading, play video games, and relax. Walmart is having a great deal on Apple's

Sony’s super-tall Xperia 1 is the first smartphone New! 2019-06-26 11:46:13Sony took the wraps off of three new phones at Mobile World Congress 2019, including the new Xperia 1, which is the company's new flagship phone and


Disclaimer and Notice:WorldProNews.com is not responsible of these news or any information published on this website.