Skip to content

Instantly share code, notes, and snippets.

@EarlGlynn
Created April 2, 2015 21:13
Show Gist options
  • Save EarlGlynn/814be57def1b02664eca to your computer and use it in GitHub Desktop.
Save EarlGlynn/814be57def1b02664eca to your computer and use it in GitHub Desktop.
Use 7zip on Windows to expand Source directory of .gz files into a Target directory
SET Pgm7Z="C:\Program Files\7-Zip\7z.exe"
SET Source="C:\Users\glynne\Desktop\RAW\reports\GZ"
SET Target="C:\Users\glynne\Desktop\RAW\reports\UnGZ"
FOR %%f IN (%Source%\*.gz) DO %Pgm7Z% x %%f -o%Target%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment