Split Zip File and open it independently.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
shirulkar
Posts: 40
Joined: 15 Jan 2013 23:53

Split Zip File and open it independently.

#1 Post by shirulkar » 16 Jan 2013 23:19

Hi,
I have one text file I zipped it and split the zip file in two part. i.e Test.zip.001 and Test.zip.002 now i want to extract each of these files independent of other. i.e suppose i have deleted the Test.zip.001 then also i can able to extract the Test.zip.002.
Please provide me the solution.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Split Zip File and open it independently.

#2 Post by foxidrive » 17 Jan 2013 02:00

That's a data recovery operation. Is this something you do on a regular basis?

shirulkar
Posts: 40
Joined: 15 Jan 2013 23:53

Re: Split Zip File and open it independently.

#3 Post by shirulkar » 17 Jan 2013 02:44

yes to mail a file which is more than 10mb after zipping. I am using batch script only

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Split Zip File and open it independently.

#4 Post by foxidrive » 17 Jan 2013 05:40

Zip has options to extract from its archives. Use those options.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Split Zip File and open it independently.

#5 Post by Squashman » 17 Jan 2013 07:05

Why would you do it that way? You can't guarantee that the text file would split exactly at the end of a line.

Why not create a batch file to split the file first and then zip each individual split file?

There are a lot of other better options for sending large files as well.

shirulkar
Posts: 40
Joined: 15 Jan 2013 23:53

Re: Split Zip File and open it independently.

#6 Post by shirulkar » 17 Jan 2013 08:48

Hi Squashman/foxidrive

I tried it by splitting the file but it takes lot of time. my .txt is too large. please suggest my any other solution.
or tell me the fastest way to split the file using batch script.

Thanks

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Split Zip File and open it independently.

#7 Post by foxidrive » 17 Jan 2013 22:25

Why don't you put it up for FTP to transfer the entire zip file, or use dropbox or your webspace somwhere.

How large is the entire zip file when it is compressed?

You can also run an FTP or HTTP server on your own machine.

Emailing a 7 MB file means it will take 10 MB to transfer it - that is very inefficient.

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: Split Zip File and open it independently.

#8 Post by abc0502 » 17 Jan 2013 23:28

Foxidrive is right, i was trying to find a way to upload to a cloud and get the shared URL, but no luck :(
I think you just upload the file before sending the file then, email the link with the e-mail.

carlos
Expert
Posts: 503
Joined: 20 Aug 2010 13:57
Location: Chile
Contact:

Re: Split Zip File and open it independently.

#9 Post by carlos » 18 Jan 2013 00:07

There are a two concepts:
Zip the file in two zip parts.
Split the text file and zip each part.

Zip format unlike Rar permits that you can extract some files of only a zip file of a collection. This means that if you have 10 files and you compress using zip, you have for example: compressed.zip.part01 and compressed.zip.part02, then if you lose compressed.zip.part02 you can recover some files of compressed.zip.part01 without have compressed.zip.part02, unlike rar format when you need have all rar parts.
But, in zip it applies to a complete files inside a part. But in your case, you are compress a only a one file (.txt), I'm not sure that you can recover the middle of the text file.
Because the risk, I suggest split the text file using some software tool (google: split a file) and then zip or rar each part.

Anyways I think that today until 20 MB in attach is a size of file that some mail servers support.
Also you can use a dropbox (after accept the agreement). For avoid problems uploading files using the web browser, you can use the Dropbox software where uploads are more faster and succesfully.
Also I think that because mail servers encode the files using base 64 the output is more large that using base 16. Then you can send the file as batch script text (not attachment) using my bhx tool: viewtopic.php?f=3&t=4104

shirulkar
Posts: 40
Joined: 15 Jan 2013 23:53

Re: Split Zip File and open it independently.

#10 Post by shirulkar » 21 Jan 2013 04:11

Hi,
Thank you I used split and then zip method.

Post Reply