Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.chm ファイルに対して実行中のプロセス hh.exe があります。Java コードを使用して、開いているすべての .chm ファイルの名前を取得する必要があります。
Runtime.getRuntime().exec("tasklist.exe /nh /v"); 実行中のアプリケーションが返され、ファイル拡張子に基づいて除外できるはずです。
ファイルが開いているか、純粋な Java コードを使用していないかを判断できないことは確かです。