Strange Posted January 31, 2015 Posted January 31, 2015 (edited) By using one of the many free and / or commercial tools (e.g. WinZip or 7Zip for Windows, zip for linux, etc.). Or by selecting "Compress directory" (or whatever the option is) in windows. Edited January 31, 2015 by Strange
StringJunky Posted January 31, 2015 Posted January 31, 2015 (edited) Right-click on Windows Desktop > Select Compressed Zipped Folder > Copy and paste files into it. Edited January 31, 2015 by StringJunky
fiveworlds Posted January 31, 2015 Author Posted January 31, 2015 (edited) But I want my own version so far as I can tell the original zip file format https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXTwas written in 1989 in the C programming language. Of course some parts say reserved by pkware or compiled using IBM Terse Edited January 31, 2015 by fiveworlds
StringJunky Posted January 31, 2015 Posted January 31, 2015 You ask how to make a zip file routine then say you want to make your own? Why reinvent the wheel?
fiveworlds Posted January 31, 2015 Author Posted January 31, 2015 (edited) Well because zip isn't free http://techsupport.services.ibm.com/390/trsmain.html#license Edited January 31, 2015 by fiveworlds
StringJunky Posted January 31, 2015 Posted January 31, 2015 (edited) If you look here you will see the source code download link for 7Zip. No idea what you need to open it with though..Notepad just gives lots of funny symbols.. It can probably be interpreted to a higher language with the right software. Edited January 31, 2015 by StringJunky
Strange Posted January 31, 2015 Posted January 31, 2015 (edited) Well because zip isn't free http://techsupport.services.ibm.com/390/trsmain.html#license Yes it is: "The .ZIP file format was released into the public domain" http://en.wikipedia.org/wiki/Zip_%28file_format%29 There are plenty of free implementations and, of course, libraries for most languages. For example (just the first I found, no recommendation intended): https://code.google.com/p/miniz/ Edited January 31, 2015 by Strange
fiveworlds Posted January 31, 2015 Author Posted January 31, 2015 (edited) Yes but subsequent versions may not be If you look here you will see the source code download link for 7Zip. No idea what you need to open it with though. That's it thanks Edited January 31, 2015 by fiveworlds
Strange Posted January 31, 2015 Posted January 31, 2015 (edited) Yes but subsequent versions may not be That makes no sense. Do you want to implement your own program implementing the zip format, in which case use one of the hundreds of (free, open source) libraries. Or do you want to invent your own archive/compression format? (In which case, you are wasting your time.) Or do you just want an alternative? In which case use tar + one of the many possible compression formats (gz, bz, etc). Edited January 31, 2015 by Strange
fiveworlds Posted January 31, 2015 Author Posted January 31, 2015 (edited) Do you want to implement your own program implementing the zip format, in which case use one of the hundreds of (free, open source) libraries. No I just wanted to know how the existing one worked because I was asked how to make a zip file and thought about it and realized that I actually had no idea I just used 7zip the whole time Edited January 31, 2015 by fiveworlds
StringJunky Posted January 31, 2015 Posted January 31, 2015 No I just wanted to know how the existing one worked because I was asked how to make a zip file and thought about it and realized that I actually had no idea I just used 7zip the whole time Working through that one will probably give you some idea.
Sensei Posted February 7, 2015 Posted February 7, 2015 How do I make a zip file? If you're thinking from programmers point of view, and asking for code, .NET Framework has functions that can be used for this task: https://msdn.microsoft.com/en-us/library/system.io.compression.zipfile%28v=vs.110%29.aspx (it's part of Windows OS) You ask how to make a zip file routine then say you want to make your own? Why reinvent the wheel? StringJunky, c'mon! It's often needed functionality for programmers. f.e. you have life update routine. Program periodically is connecting to your server checking for update, if it's available, downloading it, and it could be ZIP archive to minimize size. So it must be unzipped by program, behind user back, transparently. Then files from unzipped folder installed in program folder, and restart application..
Endy0816 Posted February 8, 2015 Posted February 8, 2015 No I just wanted to know how the existing one worked because I was asked how to make a zip file and thought about it and realized that I actually had no idea I just used 7zip the whole time There's really quite a lot to it. http://en.wikipedia.org/wiki/Data_compression can probably give you some insight.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now