I'm running 7-zip in a script and capturing the output in a variable:
$Results = (7z a $OutputFileName $InputFolder -bt -mm=LZMA -tzip) #will run and return no output
Occasionally the script will select some parameters that are not compatible, e.g. setting LZMA2 compression to a .zip archive:
$Results = (7z a $OutputFileName $InputFolder -bt -mm=LZMA2 -tzip)
when this runs, 7-zip somehow escapes the variable binding and writes directly to the console:
System ERROR:
Not implemented
How do I find the error stream that 7-zip is writing to and capture/suppress it?