With origional testing in command prompt, I was able to output the results of a 7za list command, with findstr, to a text file and I needed this same behavior in my application.
Executing 7za.exe directly with other commands like findstr or a redirection operator >> resulted in exit code 7.
How can I execute a 7za command, programmatically (C#), to list contents based off of a findstr command and finally write those results to a text file?
After some research and testing I was able to run
cmd.exeand write commands to the process. I also did not have to callexit.