I just found out that tar is now available on Windows. For the setup I outlined below, the following works as desired: mkdir test tar -xf folder.tar --strip-components=1 -C test This works on .zip too. In fact, it also works on .tar.gz.
Thanks for the clarification, but unfortunately, renaming folder.tar to topFolder.tar does not help (even if I rebuild the .tar instead of simply renaming it). In fact, I'm now finding that -t* no longer brings up the content of topFolder, even when I switch back to folder.tar - topFolder is now the only object in test no matter what I do.
I'm trying to do the same thing with .tar files, and I can get halfway there with the following: 7z x folder.tar -t* -otest The problem is that <top folder> still appears in test (files included), even when I do the following: 7z x folder.tar -t* -spe -otest Interestingly, -t* does nothing for .zip files: <top folder> is the only thing created in test. @ipavlov are these bugs?