How to detect via Java whether a particular process is running under Windows?

后端 未结 5 670
南笙
南笙 2020-12-06 17:58

Well the title pretty much sums the question. The only thing I found is this but I\'m not sure if thats the way to go.

5条回答
  •  伪装坚强ぢ
    2020-12-06 18:44

    I have not tried in non Windows based systems. perhaps the PID divisibility by 4 will provide a clue More info on this PID propery here : About the pid of the process

    and here http://blogs.msdn.com/oldnewthing/archive/2008/02/28/7925962.aspx

提交回复
热议问题