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();
}
}
java执行bat代码
猜你喜欢
转载自www.cnblogs.com/datiangou/p/10213630.html
今日推荐
周排行