📄 复件 jcallexe.java
字号:
package Appmain;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author unascribed * @version 1.0 */import java.lang.*;import java.io.*;public class JCallExe { Process process; Runtime runtime ; public JCallExe() { } public boolean runExe(String Command) { try { runtime = Runtime.getRuntime(); process = runtime.exec(Command); process.waitFor();// InputStreamReader ir=new InputStreamReader(process.getInputStream()); return true; } catch(Exception ee) { System.out.println(ee.getMessage()); return false; } } public boolean runExeToExit(String Command) { try { runtime = Runtime.getRuntime(); process = runtime.exec(Command);// process.waitFor();// InputStreamReader ir=new InputStreamReader(process.getInputStream()); return true; } catch(Exception ee) { System.out.println(ee.getMessage()); return false; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -