Re: [問題] 用java呼叫clips(.exe)

看板java作者 (阿資)時間18年前 (2007/08/01 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/11 (看更多)
Runtime rt = Runtime.getRuntime(); Process pro=rt.exec("c:\\CLIPSwin.exe"); OutputStreamWriter w = new OutputStreamWriter(pro.getOutputStream()); String[] cmd = new String[] { "(load c:\\123.txt)", "(reset)" }; for (int i = 0; i < cmd.length; ++i){ w.write(cmd[i]); w.flush(); } 程式如上 我上網找到的說clips中會出現(load c://123.txt) (reset)指令 請問未何我只有打開clips指令,而沒有(load c://123.txt)(resrt) 呢 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.114.2.230
文章代碼(AID): #16i5D7fy (java)
討論串 (同標題文章)
文章代碼(AID): #16i5D7fy (java)