If your operating system offers utility commands that display the informatin that you want, then you can use Runtime.exec to execute them.
Runtime.exec returns a Process object. You use the process object get the the standard output of the command as an input stream. You can then analyze that information.
Cheers,
Ken Jones
Main Topics
Browse All Topics





by: barrelPosted on 2000-09-15 at 00:05:32ID: 4312637
You'd have to use native code and embed that in your java code (JNI).
Since java runs in its own environment (the virtual machine), java cannot 'know' what happens outside its JVM.
WIth JNI, it is of course possible to access system resources
Barrel