Run Word 2013 from command line
Asked Answered
P

5

9

Some of our clients have a problem we can not reproduce here inhouse: Out software uses MS-Word for producing form letter. Since some of our clients use Office 2013, this function won't work anymore.
We tried to reproduce this and detect that on the affected systems Word won't start from command line. Starting via the link in the startmenu works. It also works to start Excel from command line.

Does anyone have an idea what the problem is and how to solve it?

Pinzler answered 23/7, 2013 at 15:13 Comment(0)
P
2

We found the solution: Our software still uses old 8.3 filenames - also long filenames are replaced with short ones. And it seems that Office 2013 don't like them anymore.

Pinzler answered 24/2, 2014 at 21:41 Comment(0)
L
13

You can try using start.exe from the command line:

c:> start winword

I'm wasn't familiar with it but tried it and it worked for me on Windows 7, with Office 2007. Found this site (windows-commandline.com). They claim it works for all versions of Word.

Libration answered 4/2, 2014 at 20:41 Comment(1)
Adding link to Microsoft Office Support article, which contains documentation for all of the parameters for start winword: support.office.com/en-us/article/…Locus
T
3

Just an FYI similar to Word for Excel on command line and parameters

c:\> start excel "file path and location"

c:\> start excel "c:\somepath\myfile.xlsx"

worked for us to open a file created in VB 6.0 for Excel 2013

c:\excel does not work on command line for us either

I think WinWord will work with a file parameter too.

c:\> start winword "c:\somepath\myfile.doc"
Tiger answered 16/4, 2014 at 14:37 Comment(0)
P
2

We found the solution: Our software still uses old 8.3 filenames - also long filenames are replaced with short ones. And it seems that Office 2013 don't like them anymore.

Pinzler answered 24/2, 2014 at 21:41 Comment(0)
W
1

This is the executable location and file in Office 2013, as listed in the shortcut. You cannot start it by using winword either, in Win 8 32 bit.

"C:\Program Files\Microsoft Office 15\root\office15\winword.exe"
Waldos answered 24/7, 2013 at 2:43 Comment(0)
R
0

Try using the run prompt by pressing the windowsbutton+R. The run prompt will open and then Type winword to open MS Word and excel to open MS Excel.

Recluse answered 11/3, 2015 at 12:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.