Created
June 7, 2012 21:52
-
-
Save fuzzmz/2891794 to your computer and use it in GitHub Desktop.
Recursively extract archives in nested folders with 7-zip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /D /r %%F in ("*") DO ( | |
pushd %CD% | |
cd %%F | |
FOR %%X in (*.rar *.zip) DO ( | |
"C:\Program Files\7-zip\7z.exe" x %%X | |
) | |
popd | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shouldn't use C:, variables are always the best route to take :P I usually dont even do 3rd party apps like that, people get the point with the simple foo.exe instead of \path\to\foo.exe
Nice proof of concept though :) I've got a ton of these on my Gist.GitHub.com/SpokedVictor