在MATLAB中找到已安装程序的路径? [英] Finding the path of installed program from MATLAB?
问题描述
我可以从MATLAB命令行中找出特定程序的安装路径是什么吗? 还是可以找到已注册程序的路径(等效于Windows reg)?
Can I find out from the MATLAB command line what is the installation path of specific program? Or can I find the path for a registered program (Windows reg equivalent)?
推荐答案
调用 DOS/ bash命令which
,例如
Call the DOS/bash command which
, e.g.,
!which matlab
!which notepad
(或使用system
代替!
.)
似乎Windows中没有直接的等效项.我在尝试过的(Win XP)机器上安装了cygwin,命令成功.另外,请在 stackoverflow 和<一个href ="https://superuser.com/questions/49104/handy-tool-to-find-executable-program-location">超级用户.
It seems that there isn't a direct equivalent in Windows. I had cygwin installed on the (Win XP) machine I tried it on, and the command succeeded. Alternatively, take a look at these answers on stackoverflow and superuser.
这篇关于在MATLAB中找到已安装程序的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!