How to supress the output of the taskkill command?

조회 수: 5 (최근 30일)
Robert Jones
Robert Jones 2023년 9월 10일
댓글: Robert Jones 2023년 9월 11일
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

채택된 답변

kei hin
kei hin 2023년 9월 11일
Try
[status,result] = system();

추가 답변 (1개)

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

카테고리

Help CenterFile Exchange에서 Design of Experiments (DOE)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by