I got tired of compressing one folder at a time when setting up fastDL .bz2 files and finally got around to just making it compress everything recursively.
For people that don't already have bzip2.exe, I included it.
If you already have it, here's the source for
bzip.bat.
Code:
:: Recursive bz2 Compress
:: By: Chdata
:: 4/25/2015
::bzip2.exe -z compress/*.*
@echo off
IF NOT EXIST compress MKDIR compress
for /d /r %%x in (*) do (
@echo on
pushd "%%x"
%~dp0bzip2.exe -z *.*
popd
@echo off
)
@echo on
@echo.
@echo Press enter to exit...
@pause >nul
It will try to bzip folders... but for me it always says permission denied when it tries to.
Batch is old and kinda messy so I figured it'd be fine to leave it this way.