jest--cmd

https://www.jianshu.com/p/70a4f026a0f1

 

回去试试这个

try {
//不是在Java程序中执行而是在操作系统中执行
Runtime.getRuntime().exec("cmd /c start dir");
//Runtime.getRuntime().exec("explorer \"http://www.chni.com.cn\"");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
posted @ 2020-02-04 12:53  cnchengv  阅读(155)  评论(0编辑  收藏  举报