If a .zip file contains all of the information of the original, just in less space, why does it have to be unzipped to access any of it?

876 views

If a .zip file contains all of the information of the original, just in less space, why does it have to be unzipped to access any of it?

In: 1276

43 Answers

Anonymous 0 Comments

If you are asking why can’t you execute a script or program from a compressed file, the answer is that the application depends on relative file paths of adjacent files.

So if that’s an exe with dlls, everything needs to extract to a plain folder. When you ‘open’ content directly from a zip, the OS is technically decrypting that single file to a temporary path and then running from there.

If you have a zip that contains a single self-contained file, (an exe can embed references), then launching from zip just works, just as opening any single file ‘works’.

You are viewing 1 out of 43 answers, click here to view all answers.