Automatically launching an executable

7 vues (au cours des 30 derniers jours)
STEPHEN GRAHAM
STEPHEN GRAHAM le 9 Fév 2022
Commenté : STEPHEN GRAHAM le 9 Fév 2022
I am seeking to run an application (.exe) repeatedly in a loop. Due to the nature of the program, I have to close and open it each time I operate it.
I am using actxserver() since I have to send commands to the executable
%Operate application
exeserver = actxserver("WScript.Shell");
exeserver.Run("application.exe");
The issue is that this security window pops up (as a window within MATLAB) so I must still choose 'Run' each time through the loop.
Is there any way to either bypass this window or interact with this window from within MATLAB.
Thanks

Réponses (1)

Yongjian Feng
Yongjian Feng le 9 Fév 2022
Looks like a warning from Windows, not from matlab.
Try to run matlab as admin.
  1 commentaire
STEPHEN GRAHAM
STEPHEN GRAHAM le 9 Fév 2022
I believe that would work, however, the network I am on, I do not have admin privelages.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by