simon

simon

  • NA
  • 2
  • 0

System.Diagnostics.Process and external programs

Jan 27 2006 10:52 AM
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