try { String command = "notepad"; Process child = Runtime.getRuntime().exec(command); } catch (Exception e) { e.printStackTrace(); }
如c:/my.bat
可以通过语句 Process comm=Runtime.getRunTime().exec("cmd /c my.bat"); 调用指定的.bat文件
posted on 2006-12-28 15:44 yangrui 阅读(270) 评论(0) 编辑 收藏
Powered by: BlogJava Copyright © yangrui