4 ms·
Because of this, if I'm remembering correctly, you can append a .zip file to, say, a .jpg file and it will work most image viewers and as a zip archive. It use
by godshatter 5y ago
Because of this, if I'm remembering correctly, you can append a .zip file to, say, a .jpg file and it will work most image viewers and as a zip archive. It used to be the case, anyway, I haven't tried it lately.
- kej 5y agoThis is how some self-extracting .exe files work, too. You modify the unzip command to use its own filename instead of an argument, and then you append a zip to the end of that.
- whizzter 5y agoI (and others in demoscene and gamedev) often used this "trick" to avoid having extra resource-files and just distribute a single .exe (that was in reality a small exe plus a huge zip appended just behind it). Works well because Windows just reads the MZ and then PE headers that says where the EXE data is (up to the original .exe size). Then the .ZIP central directory pointer is easily findable at the end of the file so it works fine after appending.