Get active processes through Java on Windows 2000 Pro

435 Views Asked by At

I want to get the name of all active process on a Win2000 machine. I know that "tlist -s" is the command, but to use this, the "tlist.exe" has to be extracted from the Win2000 CD-ROM. I also know "tasklist" only works on XP or greater.

I am running my tests on VM Ware, and do not have a CD-ROM. Is there another way to programmatically get the task list on Win2000?

2

There are 2 best solutions below

0
On BEST ANSWER

I ended up just using JNI to handle this case across all platforms that I needed. Refer to another post of mine (which was trying to use SWT to obtain this list, but it gives a good JNI downloadable example that is useful):

Get task manager list via SWT?

1
On

In Java without calling a 3rd party application (like say PsList)? Not without JNI.