try {
String pw="";
Process p = Runtime.getRuntime().exec(this.path + "Archivia.bat");
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String linea = br.readLine();
while (linea != null) {
if (linea != null)
pw += linea;
linea = br.readLine();
}
br.close();
p.destroy();
System.out.println(pw);
} catch (IOException e) {e.printStackTrace();}