Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Need help combining split compressed files with .BAT

Need help combining split compressed files with .BAT
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2010
Status: Offline
Reply With Quote
Dec 1, 2010, 01:34 AM
 
Hi, I'm new to the forum and I need some help joining some unique split zip files. First of all, I've carefully read all the .BAT-Mac related posts I could find but no luck since they are mostly about running a .BAT for some java games. Hopefully, some of you experts can help me out.

I am guessing my problem should be a little easier. Here's the files I have: XXX.bat, XXX.001, XXX.002, XXX.003, XXX.004. I know this is very easy on a PC, you just need to run the XXX.bat file and it'll comine the main files into one (it's supposed to be a giant zip file). I open the XXX.bat file with Textedit and it contains some very basic command lines:

copy /B XXX.001 + XXX.002 XXX.zip
copy /B XXX.zip + XXX.003 XXX.zip
copy /B XXX.zip + XXX.004 XXX.zip

So, is there a way to rewrite those so Mac can understand? If so, how do you execute them after rewriting them? I'd appreciate your help in advance!

P.S. Since I know these are literally split zip files, I've tried using HJSplit but it requires the files to have two extensions. And I don't know if the newer versions of decompression programs can combine files like those but my Stuffit 10.0 certainly can not (I'm still on OSX 10.3.9.) ...
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Dec 1, 2010, 02:11 AM
 
It looks like what you need is the cat command. Open the Terminal, navigate to where the files are and type

cat XXX.001 XXX.002 XXX.003 XXX.004 > joined.zip

Then open joined.zip in the regular way.
The low-end Mac Pro is the most overpriced Mac since the IIvx
     
zxhet  (op)
Fresh-Faced Recruit
Join Date: Dec 2010
Status: Offline
Reply With Quote
Dec 1, 2010, 04:20 AM
 
That's exactly what I needed! I've tried so many different ways without success. This forum is awesome. Thanks so much!
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Dec 1, 2010, 10:06 PM
 
You can also do the Windows version in one line:
copy /B XXX.001 + XXX.002 + XXX.003 + XXX.004 XXX.zip
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:06 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2