Hey all,
I know this is a question that has been asked before but I really need some help with this one.
In my program, the user selects a file and then I have to see if that file compiles. To do this, I need to execute an outside program and pass the name of the file to it.
I've gotten plenty of CreateProcesses exception (error = 2) and when that was fixed, I get an error message from the system (windows nt 4.0) , which is "16 bit MS-DOS Subsystem, C:\WINNT\system32\ntvdm.exe Error while setting up environment for the application".
Sometimes this comes up, sometimes it doesn't.
I'm thinking that maybe the system is allowed perform these tasks or something like that, as I can't see a way how the programmer can work around this.
code:
Process p = Runtime.getRuntime().exec(cmds);
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
cmds is the string array containing the name of the program and the argument to be passed to it.
Any help on this would be great, folks, thanks