Results 1 to 8 of 8

Thread: Can you duplicate .zip files without having to Copy 'n' Paste?

  1. #1
    Ænima's Avatar 2 in 1 BT Rep: +1
    Join Date
    Oct 2007
    Posts
    152

    Smile

    I need to know if I can duplicate a .zip file without Copy-Pasting.

    Visual Representation:

    Computer 1 contains:
    __111.html
    __112.mp3
    __113.wav
    __114.avi
    __115.pdf

    Computer 2 contains:
    __000.zip, which contains:
    ____111.html
    ____112.mp3
    ____113.wav
    ____114.avi
    ____115.pdf


    So, to rephrase my question, is there a way to archive the files on computer 1 so as to exactly duplicate, byte-per-byte, the 000.zip archive on computer 2, while only knowing the size of 000.zip and its contents.

    Thank you, and happy thinking!
    Last edited by Ænima; 11-20-2007 at 06:45 AM. Reason: colored

  2. Software & Hardware   -   #2
    optimus_prime's Avatar Guardian BT Rep: +2
    Join Date
    Feb 2007
    Posts
    395
    if files are IDENTICAL i would say it is possible if you know level of compression of the original zip.

  3. Software & Hardware   -   #3
    zapjb's Avatar Computer Abuser BT Rep: +3
    Join Date
    Nov 2002
    Posts
    3,606
    Can somebody rephrase the question?

  4. Software & Hardware   -   #4
    optimus_prime's Avatar Guardian BT Rep: +2
    Join Date
    Feb 2007
    Posts
    395
    i guess generalized question could be "can you zip files back into identical zip file they were unpacked from?"
    obviously it is a matter of guessing original zip packer and compression options used

  5. Software & Hardware   -   #5
    Ænima's Avatar 2 in 1 BT Rep: +1
    Join Date
    Oct 2007
    Posts
    152
    Aren't there unique CRC codes attributes to each file in the .zip archive. I don't think they can be duplicated.

  6. Software & Hardware   -   #6
    should work that way provided the files get added to the archive in the same order and you use the same compression settings. i'd say just try it.
    zip it on computer 1 and then MD5 the zip files on both computers and see if the MD5 code is the same.

    http://www.mgillespie.plus.com/MD5Check.zip

  7. Software & Hardware   -   #7
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    Details such as date created, date modified, date access, attributes (among others) are available for every file, and are not part of the file contents. If these are all included in the zip file then there's little chance the archives will ever be identical.

    I know some of this information is stored, but I don't know how much. Date modified and attributes are certainly there.
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

  8. Software & Hardware   -   #8
    optimus_prime's Avatar Guardian BT Rep: +2
    Join Date
    Feb 2007
    Posts
    395
    yeah, and sometimes full paths, comments and many other thingies are included too. there was zip spec on pkzip or winzip site, so it's not hard to look up.

    i understood this purely as a theoretical question, and in that sense zip can be created equal from identical files as it's lossless compression. i doubt anyone sane would try all the compressors and options in rl tho.
    Last edited by optimus_prime; 11-22-2007 at 11:43 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •