Here's what I got, but I dont know how to sendkeys only when input is waiting for something:
In the above I need to wait where it says "HERE" until the format has finished... it asks if I want to format another (y/n) and so I then want to send the "n" and "ENTER"
T
Code:
Process proc = new Process();
proc.StartInfo.FileName = Environment.GetFolderPath(Environment.SpecialFolder.System).ToString() + @"\format";
proc.StartInfo.Arguments = comboBoxF3.SelectedItem.ToString() + "/V:";
proc.Start();
SendKeys.SendWait("{ENTER}");
//HERE is where I need assistance..
SendKeys.SendWait("{n}");
SendKeys.SendWait("{ENTER}");
In the above I need to wait where it says "HERE" until the format has finished... it asks if I want to format another (y/n) and so I then want to send the "n" and "ENTER"
T