public static void runbat(String path,String filename) {
String cmd = "cmd /c start"+path+"/"+filename;
//String cmd = "cmd /c start F:/mysqlbackup/guohua/backup.bat";
try {
Runtime.getRuntime().exec(cmd);
} catch(IOException ioe) {
ioe.printStackTrace();
}
}
转载于:https://www.cnblogs.com/datiangou/p/10213630.html