Not only this is essentially a re-post (please see my comment to the question), but you apparently ignored my past answer
redirection of processstatus[
^].
Did I explain that you don't need to run "cmd" with "/c"? You don't need it. Even in my previous answer shown above I had to repeat same things more than once. Not you are using two redirected streams, which is good.
Now, what is "is not redirecting to homepage"? what's "homepage"? This term looks completely irrelevant.
You don't need to check the project status. However, you can. All you need is here:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[
^].
What you really need is synchronization with the process you've spawned. You need to make a blocking call which would put your thread to sleep until the child process terminates. For this purpose, call
System.Diagnostics.Process.WaitForExit()
. That's it.
And,
of course,
always execute it all in a separate thread. See my previous answer references in first paragraph of this one.
—SA