フィルターのクリア

Wait until dos command is done

5 ビュー (過去 30 日間)
Ryan
Ryan 2018 年 1 月 22 日
回答済み: Walter Roberson 2018 年 1 月 22 日
Hello, my problem is that I need to wait until a DOS-run executable is finished before moving on in my script. Is there a way that Matlab can recognize a DOS window closing? I know the dos() command has a status output, but it says successful in running the .exe not successful in finishing.
Is there a way to wait for a message from the system saying hey the DOS window has closed?
I've seen clunky methods work like pause 5 seconds and look for output and loop, but I would think that there is a more direct way to have information passed.
Thanks!

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 1 月 22 日
As you must be using MS Windows, you can potentially use .NET Facilites

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by