Kill excel process using powershell only

4 visualizzazioni (ultimi 30 giorni)
ST0123
ST0123 il 24 Set 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

Risposte (0)

Prodotti


Release

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by