I have chosen a console type project in Visual 2010 and want to know how to write to the cmd line.
For example, I want to be able to automatically send a string (like ipconfig) and then have the results displayed in the box.
eg;
Console.WriteLine("ipconfig"); // Send cmd
Thread.Sleep(1000); // Sleep for 1s
for (int i = 0; i < 5; i++) // Display the first 5 lines
{
Console.ReadLine();
}