views:

166

answers:

2

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?

A: 

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

mlk
Thanks for the reply. The more I looked online the more I was thinking there is no other way (except 3rd party).
Ken
A: 

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):

http://stackoverflow.com/questions/1347732/get-task-manager-list-via-swt

Ken