Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to retreive Windows shell hint for a file using Matlab?

1 回表示 (過去 30 日間)
K E
K E 2016 年 6 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
When you hover your cursor over a file in Windows 7, you get a 'shell hint' such as the 'Model State' property shown in the screenshot below. I would like to use Matlab to retrieve the string "Time domain dynamics complete" listed for 'Model State'. Here is an example using some other programming language (not sure what) but I am not sure what the iQueryInterface interface is and how to access it from Matlab, so I am having trouble getting oriented (have posted a non-Matlab-specific question here). Any suggestions that would help me get the string into Matlab would be appreciated.

回答 (1 件)

K E
K E 2016 年 6 月 3 日
編集済み: K E 2016 年 6 月 4 日
It turns out this information is in the binary file itself and I used grep to pull it out.
a = grep('Time domain dynamics complete', 'SomeSimulation.sim')
If you have a windows machine, unless you get Cygwin you can't use the full complement of unix utilities (pipes, sed, awk, etc) which are handy for searching large or numerous files, but this was enough to solve my problem.
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 6 月 3 日
You can invoke perl scripts within MATLAB, so posting the script and the MATLAB invocation of it would be a MATLAB resolution to this question ;-)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by