Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to convert a directory of .zip files to .7z (7zip) in Windows
for %%F in (*.zip) do ( "C:\Program Files\7-Zip\7z.exe" x -y -o"%%F_tmp" "%%F" * & pushd %%F_tmp & "C:\Program Files\7-Zip\7z.exe" a -y -r -m0=lzma2 -mx=9 -t7z ..\"%%~nF".7z * & popd & rmdir /s /q "%%F_tmp" )
@roslof

This comment has been minimized.

Copy link

@roslof roslof commented Jul 11, 2020

Found via Internet search. Bravo! Clean, simple and reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.