50,550
社区成员
发帖
与我相关
我的任务
分享
public void Copy(){
String text = null;
String command = "D://a//Copy.exe";// exe,bat文件名OR
try {
Process proc = Runtime.getRuntime().exec(command);
BufferedReader in = new BufferedReader(new InputStreamReader(proc
.getInputStream()));
while ((text = in.readLine()) != null) {
System.out.println(text); }
} catch (IOException ioError) {
ioError.printStackTrace();
System.exit(0);
}
}