Programmatically extract tar.gz in a single step (on Windows with 7-Zip)

Old question, but I was struggling with it today so here’s my 2c. The 7zip commandline tool “7z.exe” (I have v9.22 installed) can write to stdout and read from stdin so you can do without the intermediate tar file by using a pipe: 7z x “somename.tar.gz” -so | 7z x -aoa -si -ttar -o”somename” Where: … Read more

tech