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");
what i have done is copied answer in label and now matching the radiobutton option with it so far so good but i dont know how to uncheck radio button ...
Is there anyone know how to read a text file line by line from the web/internet in VC++?
I have a function which works well in reading the ...
I'm just starting to learn PHP and I'm trying to send my table via email. I am receiving the email but the body just says Array. I dont know where ...