Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using 7zip command line version, I need to extract a .7z file with full paths but excluding the first folder level within the archive.

I thought that this command below would work but it still extracts the "chrome-win32" folder instead of its content.

7z x "chromium.7z"  -o"C:\Apps\1\chromium\"  -ir!"chrome-win32\*"  -y
share|improve this question
    
Please do not cross-post to multiple stack-exchange sites. –  Rik Nov 19 '13 at 17:18
    
I believe you're missing \ before *. This way it matches only chrome-win32 folder. Also be avare that * does not match files starting with . –  week Nov 19 '13 at 19:42
    
@week: The \ was actually there all along, but Super User wasn’t displaying it. –  Scott Nov 19 '13 at 20:23

1 Answer 1

I guess this is cheating, but it would work....

7z x chromium.7z -o"C:\Apps\1\" -y && move "c:\Apps\1\chrome-win32" "c:\Apps\1\chromium"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.