//通过窗口标题得到进程
String getTask = "tasklist /FO CSV /fi /"WINDOWTITLE eq 深加工结转*/"";
Process process = run.exec(getTask);
InputStreamReader in = new InputStreamReader(process.getInputStream(), "GBK");
BufferedReader reader = new BufferedReader(in);
String taskInfo;
while ((taskInfo = reader.readLine()) != null) {
System.out.println(taskInfo);
}
String getTask = "tasklist /FO CSV /fi /"WINDOWTITLE eq 深加工结转*/"";
Process process = run.exec(getTask);
InputStreamReader in = new InputStreamReader(process.getInputStream(), "GBK");
BufferedReader reader = new BufferedReader(in);
String taskInfo;
while ((taskInfo = reader.readLine()) != null) {
System.out.println(taskInfo);
}