Welcome to City-Data.com Forum!
U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Computers
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
Reply Start New Thread
 
Old 05-06-2015, 11:13 PM
 
2,625 posts, read 3,411,439 times
Reputation: 3200

Advertisements

I am a high-level computer techie type (for many decades now) . . . so I do know my stuff (hardware and software). And yet, whereas I used to be able to have a .zip archive (usually created with the open-source 7-Zip program) and copy or move files into said .zip archive from outside the .zip archive, I can seemingly never do so anymore. What the hell went wrong? I have 6 modern-day laptops + 1 desktop computer to try it on and it simply cannot be done anymore. What has changed? I try the latest version of 7-Zip and it won't work. Then I try the latest version of PeaZip (another open source archiving program) and it won't work. Then I try Windows' built-in "Compressed Folders" feature (i.e., Microsoft Windows' built-in equivalent operating system feature for creating or working with .zip archives) and it still doesn't work.

Can any of you still manage to successfully copy or move any files or folders into an existing zip archive (i.e., without having to UNzip the archive, copy or move the files or folders into it the resultant unzipped folder containing the files you want to put those new files or folders together with, and then re-creating a new .zip archive from scratch?
Reply With Quote Quick reply to this message

 
Old 05-07-2015, 05:06 AM
 
Location: Wandering.
3,549 posts, read 6,661,462 times
Reputation: 2704
Using 7-Zip... I can open a zip file in the 7-Zip UI, and drag files in and out.

I can also drag a file directly into the .zip in Windows Explorer without opening the zip with any UI (since I have WinRAR installed, it handles the job).

Are you by chance running the zip app as an admin, or under different credentials of the folder owner?

Do you have a program listed as the default handler for Zip files?
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 12:46 PM
 
8,408 posts, read 7,402,622 times
Reputation: 8747
The short technical answer is that the Zip format can be kinda flaky.

I use the Zip format occasionally to compress and archive data files for a project that I perform periodically. The files are usually about 10-50 small files, each less than 10 MB, and one large file, usually 650 MB or greater. I've found through trial and error that if I make a new Zip archive and copy the smaller files into the archive and then copy the larger file, the process is relatively quick; however, if I first copy the large file into the archive and then the smaller files, copying those smaller files takes much longer. Bottom line is that smaller-file-copy-first methodology is at least 10 times faster than larger-file-copy-first method. And I have no idea why this is so.

You may be running into the same sort of thing. From my experience, it appears that the Zip format becomes much more inefficient when it has to manage large content internally during the process of adding new content.

One more consideration - there is a 4 GB upper limit to the size of classic Zip formatted archive files. Might you be bumping up against this limit?
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 01:00 PM
 
2,625 posts, read 3,411,439 times
Reputation: 3200
Quote:
Originally Posted by Skunk Workz View Post
Using 7-Zip... I can open a zip file in the 7-Zip UI, and drag files in and out.

I can also drag a file directly into the .zip in Windows Explorer without opening the zip with any UI (since I have WinRAR installed, it handles the job).

Are you by chance running the zip app as an admin, or under different credentials of the folder owner?

Do you have a program listed as the default handler for Zip files?

I have always run 7-Zip as "Administrator" and 7-Zip was listed as the default handler for Zip files.

I noted that the so-called "stable" version of 7-Zip (presently version 9.20) hasn't been updated in 5 years per this writing. Yet PeaZip just updated 11 days ago and seems to have more frequently updates. I installed the latest PeaZip 5.60 (I'd had 5.41 installed) and changed my default handler for Zip files to PeaZip. It has the same issue (even when it seems like it is letting you copy or move a file or files or a folder or folders into an existing zip archive, it takes a very long time and, in the end, it either doesn't do it at all or else it only lets you copy or move files into the root or base folder in the archive but not into any of the sub-folders). And this is when working through its own program interface.

Outside of the program interface of 7-Zip or PeaZip, if I just try to copy or move files within the Windows Explorer interface (using Windows 8.1.2 Pro 64-bit), it nearly always results in the following error message (tried with copying the same files into multiple different existing archives as a test):
Compressed (zipped) Folders error: The Compressed (zipped) Folder is invalid or corrupted.
Yet if it is truly "invalid" or "corrupted" as the error message says, then why can I unzip the zip file and use its contents and, as well, re-zip the folder containing those same files and sub-folders to create a new zip archive?

Note that, for virtually all my zipped archives, I don't use any compression but instead just select "Store" for the "Compression Level".
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 01:22 PM
 
Location: Wandering.
3,549 posts, read 6,661,462 times
Reputation: 2704
Quote:
Originally Posted by UsAll View Post
I have always run 7-Zip as "Administrator" and 7-Zip was listed as the default handler for Zip files.

I noted that the so-called "stable" version of 7-Zip (presently version 9.20) hasn't been updated in 5 years per this writing. Yet PeaZip just updated 11 days ago and seems to have more frequently updates. I installed the latest PeaZip 5.60 (I'd had 5.41 installed) and changed my default handler for Zip files to PeaZip. It has the same issue (even when it seems like it is letting you copy or move a file or files or a folder or folders into an existing zip archive, it takes a very long time and, in the end, it either doesn't do it at all or else it only lets you copy or move files into the root or base folder in the archive but not into any of the sub-folders). And this is when working through its own program interface.

Outside of the program interface of 7-Zip or PeaZip, if I just try to copy or move files within the Windows Explorer interface (using Windows 8.1.2 Pro 64-bit), it nearly always results in the following error message (tried with copying the same files into multiple different existing archives as a test):
Compressed (zipped) Folders error: The Compressed (zipped) Folder is invalid or corrupted.
Yet if it is truly "invalid" or "corrupted" as the error message says, then why can I unzip the zip file and use its contents and, as well, re-zip the folder containing those same files and sub-folders to create a new zip archive?

Note that, for virtually all my zipped archives, I don't use any compression but instead just select "Store" for the "Compression Level".
I'm wondering if the admin issue is part of the problem.

I run Visual Studio in Admin mode, and if I launch a folder from within VS (resulting in an elevated copy of Windows Explorer), I can't use 7-Zip against the folder (these folders are within the "Users" folder structure).

I've also seen issues with zips created by our software running as admin, or running under the Network Services account, being modified by regular users.

I'd check the owner / permissions on these files, or create a new standard zip with a non elevated version of 7-zip, and see if anything changes (or try elevating Windows Explorer to try the other direction).
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 01:34 PM
 
Location: Cleveland, Ohio
16,544 posts, read 19,672,308 times
Reputation: 13326
I just tried it with WinZip and grabbed an existing (huge) Zip and clicked the ADD FILES button. It told me "You cannot do that with this type of Zip file".
Tried a different tiny Zip. Worked fine.
Could it be a size issue?
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 01:47 PM
 
2,625 posts, read 3,411,439 times
Reputation: 3200
Quote:
Originally Posted by djmilf View Post
The short technical answer is that the Zip format can be kinda flaky.

I use the Zip format occasionally to compress and archive data files for a project that I perform periodically. The files are usually about 10-50 small files, each less than 10 MB, and one large file, usually 650 MB or greater. I've found through trial and error that if I make a new Zip archive and copy the smaller files into the archive and then copy the larger file, the process is relatively quick; however, if I first copy the large file into the archive and then the smaller files, copying those smaller files takes much longer. Bottom line is that smaller-file-copy-first methodology is at least 10 times faster than larger-file-copy-first method. And I have no idea why this is so.

You may be running into the same sort of thing. From my experience, it appears that the Zip format becomes much more inefficient when it has to manage large content internally during the process of adding new content.

One more consideration - there is a 4 GB upper limit to the size of classic Zip formatted archive files. Might you be bumping up against this limit?
Quote:
Originally Posted by Skunk Workz View Post
I'm wondering if the admin issue is part of the problem.

I run Visual Studio in Admin mode, and if I launch a folder from within VS (resulting in an elevated copy of Windows Explorer), I can't use 7-Zip against the folder (these folders are within the "Users" folder structure).

I've also seen issues with zips created by our software running as admin, or running under the Network Services account, being modified by regular users.

I'd check the owner / permissions on these files, or create a new standard zip with a non elevated version of 7-zip, and see if anything changes (or try elevating Windows Explorer to try the other direction).
Quote:
Originally Posted by Peregrine View Post
I just tried it with WinZip and grabbed an existing (huge) Zip and clicked the ADD FILES button. It told me "You cannot do that with this type of Zip file".
Tried a different tiny Zip. Worked fine.
Could it be a size issue?

djmilf and Peregrine bring up the file size issue (whether the size of the existing zip archive or the size of what you want to copy or move into the existing zip archive.

Hmm, a 4GB size limit for zip archives? As a test, I tried copying various files into varied zip archives that were under 4GB using drag-and-drop copying via Windows Explorer (using Windows 8.1.2 Pro 64-bit) and it worked! Now I will try copying the exact same file(s) with an existing zip archive just under 4GB in size (e.g,. a 3.8GB archive) and then try copying the exact same file(s) with an existing zip archive over 4GB (e.g., 4.8 GB, 5.26GB) to see what happens and will report back to you.

If it is stiill a problem, I will try these steps running a someone other than the Administrator (as Skunk Workz brought up) to see if that is an impactful factor. One would think that being an Administrator allows you to do anything at all (or nearly so) without restrictions.
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 02:22 PM
 
Location: Cleveland, Ohio
16,544 posts, read 19,672,308 times
Reputation: 13326
The "large" zip file I used was 7 gigs if that helps you...
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 04:26 PM
 
2,625 posts, read 3,411,439 times
Reputation: 3200
Quote:
Originally Posted by UsAll View Post
djmilf and Peregrine bring up the file size issue (whether the size of the existing zip archive or the size of what you want to copy or move into the existing zip archive.

Hmm, a 4GB size limit for zip archives? As a test, I tried copying various files into varied zip archives that were under 4GB using drag-and-drop copying via Windows Explorer (using Windows 8.1.2 Pro 64-bit) and it worked! Now I will try copying the exact same file(s) with an existing zip archive just under 4GB in size (e.g,. a 3.8GB archive) and then try copying the exact same file(s) with an existing zip archive over 4GB (e.g., 4.8 GB, 5.26GB) to see what happens and will report back to you.

If it is stiill a problem, I will try these steps running a someone other than the Administrator (as Skunk Workz brought up) to see if that is an impactful factor. One would think that being an Administrator allows you to do anything at all (or nearly so) without restrictions.
Well, I can copy files into an existing zip archive of anything under 4GB but, when I try with a 5.15GB zip archive, the same error message comes up as reported earlier. And I turned off "Run as administrator" and the same issue prevails. So it appears that the 4GB file size limit is the issue. Yet I could swear that various of my most commonly-used zip archives for storing my personal data have been over 4GB for a long time (e.g., 4.61GB, 10.7GB, 12.6GB) and I imagine that zip archiv es have had this limitation since the beginning of when they were invented. So why all-of-a-sudden is it NOW a problem issue to copy or move files into an existing zip archive that is equal to or greater than 4GB? Does it vary with what operating system one uses? I also have a MacBook Pro running Max OS X Yosemite + Windows 8.1 Pro. I should try this under Mac OS X to see if the issue prevails there as well.


What operating system and version number of the operating system do each of you use who are successful with copying or moving files into an existing zip archive? And is the operating system 32-bit or 64-bit? And successful using what archiving program? And do you succeed as well when the zip archive is 4GB or greater in size?
Reply With Quote Quick reply to this message
 
Old 05-07-2015, 06:21 PM
 
Location: (six-cent-dix-sept)
6,639 posts, read 4,567,370 times
Reputation: 4730
i think the limitation is for fat-32 filesystems. 2^32 = 4 billion addressable units.
would moving the files to an ext2,hpfs,ntfs,... filesystem work ?
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:

Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Computers

All times are GMT -6.

© 2005-2024, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Contact Us - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 - Top