Process クラスの waitFor() メソッドでコマンドの終了を待機できる。 上記実装の場合、メモ帳が閉じられたら println 'done' が実行される。 コマンドの ...
確定! 回上一頁