|
[SOLVED] error handling
greetings,
i have a java program calling a .bat file on an XP system.
Runtime.getRuntime().exec("c:\\myBatch.bat");
the batch file does a bunch of stuff, including things that may often incur unwanted popup windows or prompts that I would like automatically bypassed.
i am wondering if i can somehow time how long it has taken for the batch file to finish and return to my java program. if it has taken more than, say, five minutes, then my java program should simply move on. my program runs overnight, and i don't want to come to my pc in the morning and have to click on an "OK" prompt, then wait for it to finish.
any tips, suggestions or questions are welcome, thanks for looking
|