Skip to content

Instantly share code, notes, and snippets.

@michael-manley
Created October 27, 2017 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-manley/107d4098872edd2f4df5931b6748a971 to your computer and use it in GitHub Desktop.
Save michael-manley/107d4098872edd2f4df5931b6748a971 to your computer and use it in GitHub Desktop.
@echo off
if not exist "%2\NUL" mkdir "%2"
echo Extracting %1
pushd "%2"
"c:\Program Files\7-Zip\7z.exe" x "%1" -t* [0]
"c:\Program Files\7-Zip\7z.exe" x [0] -t#
for %%f in (*.7z) do (
echo Creating manifest for package %%~nf
"c:\Program Files\7-Zip\7z.exe" l %%f > manifest_%%~nf.txt
)
del *.
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment