String line;
Process log = Runtime.getRuntime().exec("tasklist");
BufferedReader input = new BufferedReader(new InputStreamReader(log.getInputStream()));
while ((line = input.readLine()) != null) {
System.out.println(line); //<-- Parse data here.
}
input.close();
To document it, use file writer.......
No comments:
Post a Comment