• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Retrieve task manager processes - Win2000

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I need a java program to get the list of current processes running on the task manager. I am using Windows 2000 server. Can any expert help on this?


Thank you very much.
 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Beda Tsang:
Dear all,

I need a java program to get the list of current processes running on the task manager. I am using Windows 2000 server. Can any expert help on this?


Thank you very much.



I think you cannot get it directly.If you are using Windows 2000 operating system then you have tlist.exe If you do not have this file you will need to install the Microsoft Windows 2000 support tools. To do this, place the Windows 2000 CD into the computer and run setup.exe from \SUPPORT\TOOLS directory.By using that one you can get what you needed.

This code snippet will do the work (Only, if you have tlist.exe)


I am not very sure about this one.If it works then let me know this one
[ January 02, 2008: Message edited by: Balasubramanian Chandrasekaran ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to this list of Windows commands the msinfo32 command works on 2000. You would need to exec a bat file that issues this command and then read the output stream from the process.

Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic