Re: PC information question
Re: PC information question
Then what do I use to find that kind of information? WMI?, through a DOS command?
Re: PC information question
I found this link that looks like it does wmi, but I have having trouble reading it and understanding it.
WindowsWmiInput
Re: PC information question
This is actually better. So, how do I put this in a program? Is it an "Import"?
jWMI – Query Windows WMI from Java | henryranch.net
Re: PC information question
Quote:
Originally Posted by
roofninja
how do I put this in a program? Is it an "Import"?
First, you start by learning Java.
The Java™ Tutorials
db
Re: PC information question
So, this is what I am using to test how to use the jWMI class, but I get 2 errors from how I am call the class. It says that "jWMI WMIV=new jWMI();" cannot find symbol for "jWMI".
I have copied the .java and .class in the same folder as the wmitest. Do I have to put it in the "bin" of the sdk? I am just not sure if I am putting this "jWMI" in the correct place now or what I am doing wrong here.
Code:
//test the use of jWMI class call
import javax.swing.JOptionPane;
public class wmitest{
public static void main(String args[]){
jWMI WMIV=new jWMI();
String model = WMIV.getWMIValue("Select Model from Win32_ComputerSystem","Model");
JOptionPane.showMessageDialog(null,"This is the PC model__"+model);
}
}
Re: PC information question
You start by learning Java.
The Java™ Tutorials
db