Skip to content

Instantly share code, notes, and snippets.

@Omranic
Created September 15, 2012 15:15
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 Omranic/3728428 to your computer and use it in GitHub Desktop.
Save Omranic/3728428 to your computer and use it in GitHub Desktop.
Extract all PHP packages, delete compressed files, do something manual, re-compress again
for %%X in ("D:\binary\php\*.tar.gz") do "C:\Program Files\7-Zip\7z.exe" x "%%X" -o"D:\binary\php\"
for %%X in ("D:\binary\php\*.tar") do "C:\Program Files\7-Zip\7z.exe" x "%%X" -o"D:\binary\php\"
del "D:\binary\php\*.tar.gz","D:\binary\php\*.tar"
REM # for /d %%X in ("D:\binary\php\*") do "c:\Program Files\7-Zip\7z.exe" a -ttar "%%X.tar" "%%X\"
REM # for %%X in ("D:\binary\php\*.tar") do "c:\Program Files\7-Zip\7z.exe" a -tgzip "%%X.gz" "%%X"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment