java调用外部程序 必杀 路径空格没有问题 Runtime rt = Runtime.getRuntime(); srcFile.getName(); try { String cmd[]={"cmd","/c",srcFile.getAbsolutePath()}; rt.exec(cmd); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }