Skip to content

Instantly share code, notes, and snippets.

@Efreak
Created December 30, 2016 10:11
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 Efreak/8a224dcc0d1225cd5f6400856bdaead0 to your computer and use it in GitHub Desktop.
Save Efreak/8a224dcc0d1225cd5f6400856bdaead0 to your computer and use it in GitHub Desktop.
@echo off
echo "Zipping subfolders of subfolders into uncompressed cbz files. 7z.exe should be in path, current, or parent directory"
timeout /t 10
path=C:\Program Files\7-Zip\;..;%PATH%
cls
setlocal
for /d %%a in (*) DO (
cd "%%a"
for /d %%x in ("*") DO (
7z.exe a -tzip -mx0 "%%x.cbz" "%%x\"
del /s /q "%%x\"
rmdir "%%x"
)
cd ..
move "%%a" "..\comics (unread)\"
)
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment