1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unzip /F and /U not working in V12

Discussion in 'Support' started by Howard Goldstein, Sep 2, 2010.

  1. Howard Goldstein

    Joined:
    Jun 1, 2008
    Messages:
    111
    Likes Received:
    1
    If I use UNZIP with either the /U or /F switches, no files are extracted
    even though the zip file contains many files that are newer than those in
    the target directory. This is with 12.00.26 under XP.

    --
    Howard
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,962
    Likes Received:
    30
    On Thu, 02 Sep 2010 22:01:02 -0400, Howard Goldstein <>
    wrote:

    |If I use UNZIP with either the /U or /F switches, no files are extracted
    |even though the zip file contains many files that are newer than those in
    |the target directory. This is with 12.00.26 under XP.

    I can reproduce that.

    And UNZIP /C doesn't work very well:

    Code:
    v:\ziptest> type test1.txt
    foo
    
    v:\ziptest> zip zipfile.zip *.txt
    <= V:\ziptest\test1.txt
    <= V:\ziptest\test2.txt
    
    v:\ziptest> unzip /c zipfile.zip test1.txt
    ??
    ?
    It's the same for "zip /c".

    Code:
    v:\ziptest> zip /c zipfile.zip test1.txt
    ??
    The help says "ZIP /C" and "UNZIP /C" do the same thing ... is that so?

    And ...

    Is there a way to **uncontitionally** put a file into a zip archive, replacing
    it if necessary (and regardless of timestamp)? It's the default behavior of my
    ZIP.EXE.

    v:\ziptest> zip zipfile.zip test1.txt
    <= V:\ziptest\test1.txt
    TCC: Error in archive V:\ziptest\zipfile.zip :
    File already exists in the archive. "V:\ziptest\test1.txt"

    v:\ziptest> u:\zip.exe zipfile.zip test1.txt
    updating: test1.txt (172 bytes security) (stored 0%)
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,863
    Likes Received:
    83
    No. You can either delete it from the archive and add it, or use the /U or
    /F options. You cannot unconditionally overwrite an existing file in the
    archive.

    Rex Conn
    JP Software
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,863
    Likes Received:
    83
    It's a bug in the zip library (it's returning an ASCII string when it's supposed to be returning a Unicode string). I'll pass it on to the developers.
     

Share This Page