[英]Execute commands in cmd using Java
跑
Runtime runtime = Runtime.getRuntime();
try {
Process p = runtime.exec("start cmd.exe /k \"ghci.exe test.hs\"");
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
更多信息,請參見如何打開命令提示符並使用Java插入命令?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.