no message
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Passes.Pass;
|
||||
import _VisualDVM.Global;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
@@ -10,7 +9,7 @@ public class TestPass extends Pass {
|
||||
public static String getMotherboardSN() {
|
||||
String result = "";
|
||||
try {
|
||||
File file = File.createTempFile("realhowto",".vbs");
|
||||
File file = File.createTempFile("realhowto", ".vbs");
|
||||
file.deleteOnExit();
|
||||
FileWriter fw = new java.io.FileWriter(file);
|
||||
String vbs =
|
||||
@@ -21,7 +20,6 @@ public class TestPass extends Pass {
|
||||
+ " Wscript.Echo objItem.SerialNumber \n"
|
||||
+ " exit for ' do the first cpu only! \n"
|
||||
+ "Next \n";
|
||||
|
||||
fw.write(vbs);
|
||||
fw.close();
|
||||
Process p = Runtime.getRuntime().exec("cscript //NoLogo " + file.getPath());
|
||||
@@ -33,18 +31,17 @@ public class TestPass extends Pass {
|
||||
result += line;
|
||||
}
|
||||
input.close();
|
||||
}
|
||||
catch(Exception e){
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return result.trim();
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
int a= 1/0;
|
||||
// System.out.println(Global.componentsServer.credentials_db.userAccounts.getPackedActiveRecipients());
|
||||
// String cpuId = getMotherboardSN();
|
||||
// UI.Info(cpuId);
|
||||
int a = 1 / 0;
|
||||
// System.out.println(Global.componentsServer.credentials_db.userAccounts.getPackedActiveRecipients());
|
||||
// String cpuId = getMotherboardSN();
|
||||
// UI.Info(cpuId);
|
||||
/*
|
||||
SystemInfo systemInfo = new SystemInfo();
|
||||
HardwareAbstractionLayer hardware = systemInfo.getHardware();
|
||||
|
||||
Reference in New Issue
Block a user