Created
December 30, 2016 10:11
-
-
Save Efreak/8a224dcc0d1225cd5f6400856bdaead0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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