Originally posted by Ulf Dittmer:
I think Windows has a built-in command-line utility for listing processes, but I can;t find any docs about it. This free tool would seem to do the same thing. You can run it via Runtime.exec, and then read and parse its output.
If you're looking for a Java API, have a look at JConfig.
The built-in command-line utility for listing processes in Windows is
tasklist. Unfortunately, it is possible to not install it, so I don't know if "built-in" is the correct term.
Henry