Raised This Month: $51 Target: $400
 12% 

Batch file / create bz2's in mass quantities


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Aqua Dark
AlliedModders Donor
Join Date: Aug 2009
Location: Canada
Old 07-12-2012 , 02:18   Re: Batch file / create bz2's in mass quantities
Reply With Quote #12

Just use MinGW to do all files in a directory so say you have all your files in C:\ToBebzip2 it would find and bzip2 all the files you have in it and will keep the directory structure too.

To use this you'll need MinGW (here) and MSYS (here) If you need help here's the setup and install guild http://www.mingw.org/wiki/InstallationHOWTOforMinGW When installing MinGW make sure you get the bzip2 lib.

Once installed open MSYS run this command
Code:
find 'C:\YOUR PATH' -type f -exec bzip2 -9 '{}' \;
So say your files/folders are in C:\bzip2 and you have the folders "models" and "maps" in it. Your path would be C:\bzip2 and it will find all the files and folders inside C:\bzip2 and .bz2 them for you.
__________________
Aqua Dark 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 01:28.


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