One of hundreds of answers available with our premium content service.
A: Getting information from Windows system applications relies on the programs having command line interfaces that a Java program can read from. Windows Task Manager program does not seem to support command line arguments to interrogate running processes, nor standard output, so you may need to interface with a different program to get the information you seek.
The example below uses the Java ProcessBuilder class to create a Process that opens the Task Manager graphical user interface application. The same approach can be used to run other system tools or installed applications, provided you know the path to the executable program and can supply any appropriate arguments.
… full answer hidden
Premium members click below for full answer
How can I copy process information from Windows task manager?
Your premium content subscription is a single payment that gives you: