Hi Folks,
Heres my problem.
I have a number of .java files loaded onto a grid that I want to compile into .class's using the Java compiler.
I want to loop thru the grid, line by line calling the java compiler (javac.exe) for each file.
I am running the following command to do so;
result = ShellExecute(Scr_hDC, "Open", "javac.exe", "(destination folder) (.java folder and file) ","C:\", SW_SHOWNORMAL)
I am having some success with this but need to be able to capture the output from the java compiler into a text file. I tried to add ">C:\result.txt" (as was suggested to me in an earlier thread) to the end of the parameters but to no success.
Can anyone help me out here
Thanks
John B
Heres my problem.
I have a number of .java files loaded onto a grid that I want to compile into .class's using the Java compiler.
I want to loop thru the grid, line by line calling the java compiler (javac.exe) for each file.
I am running the following command to do so;
result = ShellExecute(Scr_hDC, "Open", "javac.exe", "(destination folder) (.java folder and file) ","C:\", SW_SHOWNORMAL)
I am having some success with this but need to be able to capture the output from the java compiler into a text file. I tried to add ">C:\result.txt" (as was suggested to me in an earlier thread) to the end of the parameters but to no success.
Can anyone help me out here
Thanks
John B