I'm using some code to start an exe file instance (that will run as process) in the click event of a button.
This is the code:
Process p = null;
string targetDir;
targetDir = string.Format(@"C:\test");
p = new Process();
p.StartInfo.WorkingDirectory = targetDir;
p.StartInfo.FileName = "test.exe";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.Arguments=" ";
p.Start();
this.Cursor = Cursors.WaitCursor;
p.WaitForExit();
p.Close();
My question is this: How can I modify the code to start multiple instances of this exe process - the number of instances being taken from an textbox1.text at an certain time interval taken from an textbox2.text???
This post has been edited by cuda66: 14 August 2010 - 10:07 PM

New Topic/Question
Reply




MultiQuote







|