Raised This Month: $ Target: $400
 0% 

[BATCH] FastDL .bz2 recursive bzip2 compress


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 05-04-2015 , 15:38   [BATCH] FastDL .bz2 recursive bzip2 compress
Reply With Quote #1

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.
Attached Files
File Type: zip bzip.zip (30.6 KB, 2284 views)
__________________

Last edited by Chdata; 05-04-2015 at 15:40.
Chdata is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode