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

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?

 Accepted Answer

[~,b] = system('tasklist');
IsRunning = contains(b, 'mspaint.exe'); %1, if is running / 0, if not

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 18 Nov 2020

Edited:

on 18 Nov 2020

Community Treasure Hunt

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

Start Hunting!