I'm trying to create a webpage, that on clicking a button on a webform invokes a command line program like
ProcessStartInfo startInfo = new
startInfo.Arguments = @"parameters";
The program takes about 3 secs or more to complete it's process running via command prompt. This creates a file that is then read by the next method morestuff();
My problem is that after Process.Start() it moves over to the method morestuff and the file is still not created and throws an error - file does not exist.
How do I make sure that the process.start is complete before executing the method morestuff()?
Thanks in Advance!!
View Complete Post