i have a file called cplus.exe in the same directory as my java program, what code would i use to call this? i get it to open but the console doesn't open, it only shows it running in the process tab in the task manager.
could somebody show me the code to run this, where it will open the command prompt box then run the program?
this is what i have so far, it will load a vb program:
Code:
try
{
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("vbex.exe");
InputStream in = p.getInputStream();
OutputStream out = p.getOutputStream();
InputStream err = p.getErrorStream();
}catch(Exception exc){/*handle exception*/}