Is there a way to kick off a bat file from a Java swing program and have the dos output show in a JTextPane?
posted 10 years ago
Yes, that's possible. You can call Runtime.exec to execute CLI tasks, and it will return to you a Process object, through which you can get access to the input, error and output streams of the newly created process. A few points to keep in mind when using Runtime.exec can be found here.