Error using windows system command "wmic"

I want to run the standard windows dos command "wmic" within MATLAB:
[sts, commandout] = dos(' wmic path win32_perfformatteddata_perfproc_process GET IDProcess, Name, PercentProcessorTime /VALUE')
I receive the error: "WMIC: Unknown WMIC Exception."
When I run the command in the command shell, it works.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 11 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by