MATLAB Answers

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

3 views (last 30 days)
jason lee
jason lee on 18 Nov 2020
Edited: Jakob on 18 Nov 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?

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by