This is my code:
Process pr2 = new Process(); pr2.StartInfo.FileName = \"show-snps\"; pr2.StartInfo.Arguments = @\"-Clr -x 2 out.delta > out.snps\"; pr2.S
It didn't work because > redirect was supported by cmd.exe shell. Try the following code instead.
>
cmd.exe
Process pr2 = new Process(); pr2.StartInfo.FileName = @"c:\windows\system32\cmd.exe"; pr2.StartInfo.Arguments = @"/k \"show-snps -Clr -x 2 out.delta > out.snps\""; pr2.Start(); pr2.WaitForExit();