如何从命令行查找Microsoft Office路径 [英] How to find Microsoft Office path from command line
本文介绍了如何从命令行查找Microsoft Office路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用命令行来定位MS Office的路径.它应该返回类似C:\Program Files (x86)\Microsoft Office\Office14
的内容,这可能因不同的用户而异.
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.
尝试使用:
where WINWORD.EXE
INFO: Could not find files for the given pattern(s).
for %i in (WINWORD.EXE) do @echo. %~$PATH:i
No output
感谢您的帮助
推荐答案
一个起点是用于应用程序注册的注册表项
One starting point is the registry entries for application registration
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE"
这篇关于如何从命令行查找Microsoft Office路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文