Extract all compressed (gzip zip) files in a directory recursively

Another one liner, but for Windows CLI:

FOR /R "C:\path\to\directory" %I IN (*.gz) DO "c:\Program Files\7-Zip\7z.exe" x "%I" -aou -o"%~dpI"

This requires z-Zip to be installed.  The gz could be altered to another compressed file extension.

Leave a Reply

Your email address will not be published. Required fields are marked *