On 26/06/11 3:54 AM, Memo wrote:
I can't get runtime.exec to execute a program in Java. I am trying to execute a bat file.
I am pretty sure BAT files must be run by a command interpreter. Its not like Unix where the kernel knows how to run a shell script (via #!/bin/sh). Try "CMD /C myscript.BAT..." (or something like that) so you execute CMD.EXE which then runs the BAT file for you.
Alan -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javaposse@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.