any application closing using matlab
古いコメントを表示
hello i want to know if some on have an idea what command to be used to close a ms-word document using matlab or some code to do that task the word document can be at any memory location of the disk and not only word but even for any other application
1 件のコメント
Jan
2012 年 11 月 28 日
Please use dots to separate the sentences. The location of a file on the hard disk does not matter the problem: If you want to kill an application, this works even without an opened file.
回答 (4 件)
Vishal Rane
2012 年 11 月 28 日
2 件のコメント
PK
2012 年 11 月 29 日
Matlab2010
2014 年 10 月 9 日
編集済み: Matlab2010
2014 年 10 月 9 日
dos('taskkill /F /IM acroRd32.exe');
Kaustubha Govind
2012 年 11 月 28 日
If the open application is a COM server, you might also be able to use the MATLAB COM API (Although I haven't tried this on my end):
h = actxGetRunningServer('Word.Application');
h.Quit();
2 件のコメント
PK
2012 年 11 月 29 日
Bachtiar Muhammad Lubis
2019 年 2 月 7 日
is actxGetRunningServer() same with actxserver() ?
Walter Roberson
2012 年 11 月 29 日
0 投票
Java Robot Class to automatically access the taskbar and trigger the commands to kill the task.
There is no simple command to do what you want.
Babak
2012 年 11 月 29 日
You need to execute a dos command. Here's a piece of MATLAB's help:
Please see the documentation on
status = dos(command)
1 件のコメント
Walter Roberson
2012 年 11 月 29 日
The dos() command and the system() command earlier suggested are the same thing.
カテゴリ
ヘルプ センター および File Exchange で MATLAB Compiler についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!