I need to exicute multiple lines of commands in CMD, how would I do that?
Please look at http://www.codeproject.com/KB/cs/Execute_Command_in_CSharp.aspx
There is also a nice example.
If you know this method and are asking for one with multiple lines you can just add \n and go on as it is a string parser.
To write lines I'd just do stuff like this?
That is after the process is started.
Would it automatically press enter or would I have to use
Edited 7 Years Ago
by GAME: n/a
GAME after some reading I have come up with two methods for this.
Write your Commands in a text file and save it as a .cmd and run that file or do the following.
Process p = new Process();
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = "cmd.exe";
info.RedirectStandardInput = true;
info.UseShellExecute = false;
p.StartInfo = info;
using (StreamWriter sw = new StreamWriter(p.StandardInput))
sw.WriteLine("mysql -u root -p");
Hi. I have a .raw file and I want to display it as hex. why? because i want to try and replicate what 010 Editor can do which is read ...
I was wondering what would be the best way to implement an algorythm to figure out what side a circle has collided with a rectangle?
After check to make sure ...
I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it ...