Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Microsoft Office path from command line

I would like to use command line to locate the path of MS office. It should return something like C:\Program Files (x86)\Microsoft Office\Office14 which might differ to different users.

Tried using:

where WINWORD.EXE 
INFO: Could not find files for the given pattern(s).

for %i in (WINWORD.EXE) do @echo.   %~$PATH:i
No output

Thanks for any help

like image 750
Ross Avatar asked Mar 18 '14 06:03

Ross


People also ask

How do I find my Microsoft Office path?

Click the Link tab and add msi. lib in the list of Object/library modules. Run the program. It will display the file path where Microsoft Word is installed.

How do I open Microsoft Office from command prompt?

Opening document from the command lineOpen the Windows command line. Get to the directory containing the Microsoft Word document using the cd command. Once in the directory containing the document, use the start command to start the document in Windows. For example, if the document is called "example.


1 Answers

One starting point is the registry entries for application registration

reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE" 
like image 55
MC ND Avatar answered Oct 12 '22 12:10

MC ND