摘要:
import java.io.IOException;public class Main {public static void main(String[] args){try {Runtime rt = Runtime.getRuntime();rt.exec("cmd.exe /c start c://1.bat");} catch (IOException e) {e.printStackTrace();}}/* 1.bat的内容* @echo off* echo lsd>>c:/lsd.txt** */}rt.exec("");的运行 阅读全文
posted @ 2012-06-23 22:27 鹤唳九天 阅读(159) 评论(0) 推荐(0) 编辑