Hello,I am trying to use taskkill in matlab to kill the excel files which are running .But ,'taskkill' is not getting recognised as an internal or external command in Matlab.Could anyone please help me with this. :
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Code: system('taskkill \F \IM EXCEL.EXE')
1 comentario
Eddie Irvine
el 4 de Abr. de 2021
Editada: Eddie Irvine
el 4 de Abr. de 2021
Hi,
system('taskkill /F /IM EXCEL.EXE')
and
system('taskkill /F /IM SCREENSKETCH.EXE') (for Snip & Sketch application in Windows10)
work smoothly in my Windows10-64bit computer,
with MATLAB2020a.
Two occurance of '\' in the above comment by Adam Danz is replaced with '/' and this avoided the error such as:
ERROR: Invalid argument/option - '\F'.
Type "TASKKILL /?" for usage. )
With kind regards,
EI
Ver también
Categorías
Más información sobre Downloads en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!