System.Diagnostics.Process and external programs
Hi all,
bit of a newbie so please be patient.
I have a C# app that calls a java app by means of a .bat file. It's all quite simple, the C# writes some values to a .txt file, calls the java app which reads the .txt and adds some more values to it and then writes it out. C# then reads it, adds some more values, writes it out and then calls the .bat again. This goes back and forth for x number of iterations.
My question: can System.Diagnostics.Process be used to tell the C# app when the java app has finished and it is safe to pick up the .txt file?
C# -> .bat -> javaApp
Thanks,
Simon