R
rynox
hi all ,
i have a problem . i am trying to call a bat file from java. When i
test using a exe file. I can call the exe file, but when its a .bat. it
just doesnt seem to work. here is the code:-
File[] fdrives = File.listRoots();
Runtime run = Runtime.getRuntime();
try {
frame.dispose();
JOptionPane.showMessageDialog(null,"Start Installation");
Process
pp=run.exec("D:\\EAServer_v4_Developer\\SilentInstall_Win.bat");
JOptionPane.showMessageDialog(null,"Installation Complete");
}
catch (Exception e) {
JOptionPane.showMessageDialog(null,"Error occured");
}
the location of the bat file is correct. Its a silent installation for
EAServer. Does anyone have any idea how come this happen ? Please help
or advice.
@ could mail me at (e-mail address removed) also.
Thanks.
marvin.
i have a problem . i am trying to call a bat file from java. When i
test using a exe file. I can call the exe file, but when its a .bat. it
just doesnt seem to work. here is the code:-
File[] fdrives = File.listRoots();
Runtime run = Runtime.getRuntime();
try {
frame.dispose();
JOptionPane.showMessageDialog(null,"Start Installation");
Process
pp=run.exec("D:\\EAServer_v4_Developer\\SilentInstall_Win.bat");
JOptionPane.showMessageDialog(null,"Installation Complete");
}
catch (Exception e) {
JOptionPane.showMessageDialog(null,"Error occured");
}
the location of the bat file is correct. Its a silent installation for
EAServer. Does anyone have any idea how come this happen ? Please help
or advice.
@ could mail me at (e-mail address removed) also.
Thanks.
marvin.