Archive: May 19, 2006
-
Launching a process and displaying its standard output - The Code Project - C# Programming. So, here's how to do Perl's '$str = `shellcommand`' in C#:
public string Run(string command, string args){
Process p = new Process(); // System.Diagnostics.Process
p.EnableRaisingEvents = false;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = command;
p.StartInfo.Arguments = args;
p.Start();
return p.StandardOutput.ReadToEnd();
}
¶ (0)
Tags: [C#]
-
VSJ | .NET Zone | Scripting with C#. Dynamically compiles C#, and so on. Didn't finish reading though.
¶ (0)
Tags: [C#]
-
Laintime: The Compilation - Google Video. Google video has such poor quality, but the non-premium Filefront copies of the Laintime videos are all 404'd. I think the quality of the Google Video video is a little better if you use their desktop player.
¶ (0)
Tags: [World of Warcraft]
|
Generated in about 0.048s. (Used 7 db queries) |
new⇒Girls, please don't get breast implants
you people implants are fine thesedays but they are like body organsnot e...
kym: Oct 15, 5:25pm