Process process =Runtime.getRuntime().exec("cmd /c del c:\\a.doc");
//Runtime.getRuntime().exec("notepad");
//Runtime.getRuntime().exec("cmd /c start c:\\a.doc");
//Runtime.getRuntime().exec("cmd /c start http://www.baidu.com");
Process process = Runtime.getRuntime().exec("cmd /k start c:\\test.bat"); //java调用bat文件
mysqldump --user=root --host=localhost --password=pass zhangwei >c:\zw4.sql
// process.waitFor();
//Runtime.getRuntime().exec("notepad");
//Runtime.getRuntime().exec("cmd /c start c:\\a.doc");
//Runtime.getRuntime().exec("cmd /c start http://www.baidu.com");
Process process = Runtime.getRuntime().exec("cmd /k start c:\\test.bat"); //java调用bat文件
mysqldump --user=root --host=localhost --password=pass zhangwei >c:\zw4.sql
// process.waitFor();