Kill excel process using powershell only

4 views (last 30 days)
ST0123
ST0123 on 24 Sep 2019
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

Answers (0)

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!