public class Test {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Process process = Runtime.getRuntime().exec("cmd");
InputStream is = process.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line ;
while((line = br.readLine())!=null)
System.out.println(line);
}
}
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Process process = Runtime.getRuntime().exec("cmd");
InputStream is = process.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line ;
while((line = br.readLine())!=null)
System.out.println(line);
}
}