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

Viewed 55799

Problem: I would like to be able to extract tar.gz files in a single step. This makes my question almost identical to this one: Stack Overflow question for tar-gz.

My question is almost the same, but not the same, because I would like to do this on windows using 7-Zip command-line (or something similar) inside a bat file or Ruby/Perl/Python script.

Question: This seemingly simple task is proving to be more involved than the first appearance would make it out to be. Does anyone have a script that does this already?

5 Answers

As you can see 7-Zip is not very good at this. People have been asking for tarball atomic operation since 2009. As an alternative, you can use the Arc program. Example command:

arc unarchive test.tar.gz
Related