Java中执行.exe文件

 

    public static void main(String args[]){
        try {
            String command ="notepad"; // 笔记本
            Process child = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

 

posted @ 2017-03-07 17:00  太潮了就要晒  阅读(724)  评论(0编辑  收藏  举报