private void runCommand(String command) {
try {
command = "cmd /C " + command;
Runtime.getRuntime().exec(command);
/*
* 将DOS输出窗口内容存到指定文件中
BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
PrintStream ps=new PrintStream(new FileOutputStream(filename));
String inline;
while(null!=(inline=br.readLine())){
ps.println(inline);
}
int exitVal = proc.waitFor();
*/
} catch (IOException e) {
e.printStackTrace();
}
}