Hi,
I am running a batch file from VB which in turns runs a java compiler on a java file from a VB application. I am passing parameters to the compiler from VB through batch file. I am using the Shell command to run the batch file. It all works perfectly fine until I try to loop the shell command into calling the java compiler several times in quick succession. I cannot figure out how to wait for the previous process to finish before starting the next one.
There is a createprocess API available and also a WaitforSingleObject API which I have been trying to use but without any success. I can't seem to pass in my parameters successfully using this. Am I doing something wrong or is there an easier solution to this problem.
Thanks
John B
I am running a batch file from VB which in turns runs a java compiler on a java file from a VB application. I am passing parameters to the compiler from VB through batch file. I am using the Shell command to run the batch file. It all works perfectly fine until I try to loop the shell command into calling the java compiler several times in quick succession. I cannot figure out how to wait for the previous process to finish before starting the next one.
There is a createprocess API available and also a WaitforSingleObject API which I have been trying to use but without any success. I can't seem to pass in my parameters successfully using this. Am I doing something wrong or is there an easier solution to this problem.
Thanks
John B