Thanks for that - and seeing that you found me out, is there a way of calling the java compiler from VB and if there is, can a compile error in the Java be fed back to VB - in other words what I'm trying to do cut out the use of a batch file to do the above.
You can certainly invoke the Java Compiler - just use the Shell function specifying javac and it's command line arguments...
As for getting the output from that, if this is a single user system, you might consider adding " > c:\results.txt" to the value you use in Shell. That should write the output to a results.txt file, which you could then open and read with VB. It's not all that elegant though, is it?
mmilan.
Ps. I'm beginning Java - reading the tutorials as we speak...
Thanks again for your suggections mmilan - I'm only getting back to this now, got side-tracked on another project. The only problem I see with this is as follows;
What I hope to achive is to be able to compile a number of java programs one by one from a grid. In doing so I need to know when one is finished compiling before I call the next one so as not to keep calling the compiler as it is compiling previous programs if you see what I mean. So basically my question is - I call the first program with the compiler as you suggest above - how do I get VB to wait until the compile is complete before calling the second one and so on.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.