Results 1 to 4 of 4
- 08-11-2007, 11:23 AM #1
Member
- Join Date
- Aug 2007
- Posts
- 2
- Rep Power
- 0
- 08-13-2007, 06:23 PM #2
Member
- Join Date
- Aug 2007
- Posts
- 30
- Rep Power
- 0
Hey lealea,
Java really wasn't meant to do this, but there are ways to do anything. I would use System.LoadLibrary to get the Windows Management Interface (WMI) code into your Java app, then call the WMI routines you need to get these stats. This solution is very windows centric, but it's relatively quick.
Don.Don MacVittie F5 Networks - DevCentral
- 08-13-2007, 08:23 PM #3
Member
- Join Date
- Aug 2007
- Posts
- 2
- Rep Power
- 0
Hi Don,
thank you for giving me a direction.
Can you refer me to a simple example of loading WIN & working with its routines?
thanks alot
- 08-13-2007, 08:35 PM #4
Member
- Join Date
- Aug 2007
- Posts
- 30
- Rep Power
- 0
Note that it's been a while since I had to do this, and there could very well be a better way, but the jawin project lets you call nearly any COM interface from Java.
There are some decent samples there of calling misc. routines built into Windows.
Don.Don MacVittie F5 Networks - DevCentral
Similar Threads
-
Problem loading resources.
By jimm1 in forum Advanced JavaReplies: 6Last Post: 06-23-2008, 07:31 PM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
CRC check program 1 error
By javakid9000 in forum New To JavaReplies: 1Last Post: 03-19-2008, 05:04 AM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks