フィルターのクリア

closing an application or document

15 ビュー (過去 30 日間)
PK
PK 2012 年 11 月 28 日
hello my question is ""I want to open a ms-word document and then MATLAB after that I want to close the opened ms-word document"" so what command or part of code can be used to do that task and in example I have asked as ms-word it can be an excel,text,powerpoint,pdf,etc., suggest some answer relevant to the requirement.
  3 件のコメント
PK
PK 2012 年 11 月 29 日
@Walter Roberson : killing an application refers to closing it or deleting it pls elaborate your answer and can u explain how to kill an application.
Walter Roberson
Walter Roberson 2012 年 11 月 29 日
My comment is administrative, and goes along with the Tag I added, "duplicate post requiring merging". This present Question is the same topic as your earlier Question, so this Question needs to be merged with your previous one. I do not, however, have access to the internal tools needed to merged Answers Forum Questions that have been Answered, so I tagged the question for the staff to take care of the merging.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2012 年 11 月 28 日
編集済み: Jan 2012 年 11 月 28 日
Opening:
winopen('C:\Temp\yourFile.docx')
Closing:
This has been answered in your very similar question http://www.mathworks.com/matlabcentral/answers/55013-any-application-closing-using-matlab already.
Please do not post a question again, but add comments to answers, when they do not solve your problem.
  4 件のコメント
Jan
Jan 2012 年 11 月 28 日
編集済み: Jan 2012 年 11 月 28 日
@Pink panther: I do not see any suggestion concerning deleting a file. When I read your question again I still find: "I want to open a ms-word document...". Please explain, why winopen() does not answer this part of the question. It even works for "excel, text, powerpoint, pdf", but "etc" is simply too general to be solved from the Matlab level.
And you are right: I did not answer how to close Word in the posted link, but Vishal Rane and Kaustubha Govind did it. I do not understand what you want to say with these comments.
PK
PK 2012 年 11 月 29 日
@simon: ur ans to open using winopen is fine but my problem is not "I want to open a ms-word document." but its to close a ms-word document which is already in open ie., which u can see on taskbar

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by