摘要:
1 import java.io.BufferedReader; 2 import java.io.InputStreamReader; 3 4 public class Test { 5 public static void main(String[] args) { 6 String command = "cmd /c dir \\windows"; 7 String result; 8 try { 9 Process process = Runtime.getRuntime().exec(command);10 BufferedRe... 阅读全文