Runtime r = Runtime.getRuntime();
try {
proc = r.exec("cmd /c" + command);
System.out.println(command + "-->cmd");
InputStream is = proc.getInputStream();
byte[] b = new byte[1024];
is.read(b);
result.add(new String(b));
} catch (IOException e) {
e.printStackTrace();
------分隔线----------------------------
- 上一篇:Java中值传递详解
- 下一篇:Java对BigDecimal常用方法的归类


百鸣[Baiming.org]欢迎您~