摘要: 直接看源程序吧public static void main(String[] args) throws IOException { File dir = new File("D:\\"); // String command="netstat -an"; String command = "c:\\windows\\system32\\cmd.exe /c netstat -an"; Runtime r = Runtime.getRuntime(); Process p = r.exec(command, null, dir); B 阅读全文
posted @ 2011-09-16 14:46 skyme 阅读(7494) 评论(0) 推荐(0)