ふらっとC♯, C#(初心者用) Part11
■ このスレッドは過去ログ倉庫に格納されています
0646デフォルトの名無しさん
2007/01/06(土) 14:23:41なにもそんな難しいことをする必要はない。
Process p = new Process();
p.StartInfo.FileName = "perl";
p.StartInfo.Arguments = "foo.pl";
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.StandardOutputEncoding = Encoding.GetEncoding("EUC-JP");
p.StartInfo.UseShellExecute = false;
p.Start();
p.WaitForExit();
textBox1.Text = p.StandardOutput.ReadToEnd();
■ このスレッドは過去ログ倉庫に格納されています