java执行bat代码
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();
}
}