Azzera filtri
Azzera filtri

How to supress the output of the taskkill command?

13 visualizzazioni (ultimi 30 giorni)
Hello,
I have this line in my code
ans=system('taskkill /F /IM "CST DESIGN ENVIRONMENT_AMD64.exe"> NUL');
and I get this erroras output on the consol
ERROR: The process "CST DESIGN ENVIRONMENT_AMD64.exe" not found.
I would like to supress it so it won' interfere with other messages that are programmed to be displayed
Any ideas?
Thank you

Risposta accettata

kei hin
kei hin il 11 Set 2023
Try
[status,result] = system();

Più risposte (1)

Walter Roberson
Walter Roberson il 11 Set 2023
Try
ans=system('taskkill /F /IM "CST DESIGN ENVIRONMENT_AMD64.exe" > NUL 2>&1');

Categorie

Scopri di più su Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by