日期:2014-05-20 浏览次数:20737 次
Runtime runtime = Runtime.getRuntime(); process = runtime.exec("cmd /c Tasklist /V"); BufferedReader in = new BufferedReader(new InputStreamReader( process.getInputStream())); String s = ""; while ((s = in.readLine()) != null) { //把s字符串中的各段信息提取出来,作为展示用table的数据 }