check if some exe program is running on the windows

后端 未结 4 1405
时光说笑
时光说笑 2020-11-30 08:49

How to check if some .exe program is running (is in process) on Windows?

I\'m making java application which update one .exe program. So, if that exe program is used

4条回答
  •  眼角桃花
    2020-11-30 09:37

    You can try running the following code :

    Runtime rt = Runtime.getRuntime();
    

    and execute "tasklist"

    tasklist returns a list of currently executing processes (as shown in the task manager's process tab).

提交回复
热议问题