1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| try {
outputForm output = new outputForm();
output.setVisible(true);
Process myProc = Runtime.getRuntime().exec(ini.getProperty("path", "appli") + "/" + ini.getProperty("appliFolder", "out") + "/MNTbathy.bat");
InputStream is = myProc.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
while ((reception = br.readLine()) != null) {
output.addText(reception);
}
int codeRetour = myProc.waitFor();
myProc.destroy();
}
catch (IOException ex) {
System.err.println("DataSetChooser.DataSetChooser : " + ex.getMessage());
}
catch (InterruptedException ex) {
System.err.println("DataSetChooser.DataSetChooser : " + ex.getMessage());
} |
Partager