Automatically launching an executable

조회 수: 9 (최근 30일)
STEPHEN GRAHAM
STEPHEN GRAHAM 2022년 2월 9일
댓글: STEPHEN GRAHAM 2022년 2월 9일
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

답변 (1개)

Yongjian Feng
Yongjian Feng 2022년 2월 9일
Looks like a warning from Windows, not from matlab.
Try to run matlab as admin.
  댓글 수: 1
STEPHEN GRAHAM
STEPHEN GRAHAM 2022년 2월 9일
I believe that would work, however, the network I am on, I do not have admin privelages.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by