Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

3 visualizaciones (últimos 30 días)
K E
K E el 3 de Jun. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (1)

K E
K E el 3 de Jun. de 2016
Editada: K E el 4 de Jun. de 2016
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 comentario
Walter Roberson
Walter Roberson el 3 de Jun. de 2016
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 ;-)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by