I have the following code:
Process scriptProc = new Process();
scriptProc.StartInfo.FileName = @"cscript";
scriptProc.Start();
scriptProc.WaitForExit();
scriptProc.Close();
And I want to hide that cscript window that will show when I execute the above code. And is there any way I can show the above script progress in a winform progressbar control?
Thanks.
To start a process without showing a new window, try:
To show script progress, you need the script to write its progress text to stdout, then have the calling program read the progress text and display it in your user interface. Something like this: