When I try to run another program from Java, well I think Java can do that. So I try to google it. Then I found interesting web site: http://mindprod.com/jgloss/exec.html

In summary, you can use this command to Run another program:

Runtime.getRuntime().exec("cmd");
// or
Runtime.getRuntime().exec("notepad");
// or
Runtime.getRuntime().exec("C:\\Temp");

Note that exec() can only run *.exe. If you want to run *.bat file, here is the example:

Runtime.getRuntime().exec("cmd /c \"C:\\Temp\\test.bat\"");

Interesting huh? Lest try:mrgreen: