Hi, in my java application I need to get a list of processes that Windows XP is running. I am currently using this code to get the list:
p = Runtime.getRuntime().exec("tasklist");
BufferedReader procInput = new BufferedReader(InputStreamReader(p.getInputStream()));
The problem is that the tasklist command only seems to work in Windows XP professional edition, and not in the 'Home' or 'Media Center' editions. While most people are running pro, in the interest of compatibility I would like it to work with all versions of windows. I've rooted around in the API, but I can't find another way to get a list of running processes. Any ideas? Thank you