How to use MATLAB to determine if an exe process exist?

31 visualizaciones (últimos 30 días)
jason lee
jason lee el 18 de Nov. de 2020
Editada: Jakob el 18 de Nov. de 2020
i want to use MATLAB to determine if 'mspaint.exe' is running on the system and return the status.
How could i complish this with MATLAB?

Respuesta aceptada

Jakob
Jakob el 18 de Nov. de 2020
Editada: Jakob el 18 de Nov. de 2020
[~,b] = system('tasklist');
IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by