Kill excel process using powershell only

4 次查看(过去 30 天)
hi,
To kill excel process, i tried using the following command
!powershell -inputformat none Stop-Process -Name "Excel"
but it gives me this error msg
The command prompt has been disabled by your administrator.
Press any key to continue . . .
The command prompt is disabled by the admin only powershell is working for me. the command works fine in powershell . but when running through Matab, it seems that the execution starts from command prompt first instead of powershell
-inputformat none Stop-Process -Name "Excel"
Please suggest any solution

回答(0 个)

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by