winformsアプリケーション内からcmd.exeプロセスを実行しています。ただし、コンソールウィンドウをバックグラウンドで実行できないようです(つまり、画面に表示されません)
これが私のコードです
ProcessStartInfo si = new ProcessStartInfo("cmd.exe");
si.RedirectStandardInput = true;
si.RedirectStandardOutput = true;
si.UseShellExecute = false;
si.Arguments = "/c";
si.WindowStyle = ProcessWindowStyle.Hidden;
Process p = Process.Start(si);