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

ZIP, UNZIP v11 Beta

Discussion in 'Support' started by Joe Caverly, Oct 2, 2009.

  1. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    680
    Likes Received:
    8
    Hi,
    Just used the ZIP command to create the mytext.zip file, using;

    Code:
    ZIP mytext.zip *.txt
    
    One of the .txt files, jlc.txt, was a compound document file, consisting of the jlc.txt file, and the sol2.exe file.

    When I did an;

    Code:
    UNZIP /v mytext.zip
    it returned the following;

    Code:
    2009-09-02  06:55             30  14%  history.txt
    2009-07-18  09:35             11 -18%  jlc.txt
    2009-08-06  21:38            102  25%  jlc_powershell.txt
    2009-08-02  08:42            458  44%  mailto.txt
    2009-06-03  09:50             80  10%  nocopy.txt
    2003-00-02  17:04          1,152  49%  readme.txt
    2009-06-25  20:58            279  65%  recentdocs.txt
    2009-07-18  08:07            102   2%  sb.txt
    2004-04-10  13:50            840  50%  TuFix.txt
    Note the -18% compression on the jlc.txt file.

    When I extracted the jlc.txt file, using;

    Code:
    unzip mytext.zip jlc.txt
    all I got back was the jlc.txt file. The sol2.exe file is no longer there.

    Thus, am I correct that ZIP and UNZIP do not support compound document files?

    Thanks from Joe
    TCC 11.00.21 Windows XP [Version 5.1.2600]
    TCC Build 21 Windows XP Build 2600 Service Pack 3
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,863
    Likes Received:
    83
    Not yet. That's planned but it may not make it into the initial v11
    release.

    Rex Conn
    JP Software
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,863
    Likes Received:
    83
    Could you email me (directly to rconn@jpsoft.com) your compound document so I can test it here?

    Thanks.
     
  4. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    680
    Likes Received:
    8
    For others who may not be familiar with this type of file, here's a .BTM that will create, and display, these types of files;

    Code:
    @setlocal
    @echo off
    ::Create the NTFS File
    ::
    echo Test File > jlc.txt
    echo This is a test > jlc.txt:hidden.txt
    type c:\windows\system32\sol.exe > jlc.txt:sol2.exe
    ::
    :: Add some summary data
    ::
    echo %@summary[jlc.txt,Title,This is a test file]
    echo %@summary[jlc.txt,Author,Joe Caverly]
    ::
    :: Take a look at the file
    ::
    type jlc.txt
    ::
    :: Take a look at the hidden.txt file
    ::
    type jlc.txt:hidden.txt
    ::
    :: Launch Solitaire
    ::
    start /PGM jlc.txt:sol2.exe
    ::
    :: Summary Title
    ::
    echo %@summary[jlc.txt,Title]
    ::
    :: Summary Author
    ::
    echo %@summary[jlc.txt,Author]
    endlocal
    
    
    The only program that I know of that will display a directory listing of a compound document is the V program by Charles Prineas. Alas, this is a GUI, not a CLI.

    Maybe someday TC will be able to display this type of file via the DIR command.

    I basically use the compound document format as a "poor mans" archive. While it does not offer any form of compression, it's rather easy to keep a group of related text files, or other documents, all grouped together.

    Joe
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,863
    Likes Received:
    83
    TCC already can -- "dir /:".

    But I haven't found any zip program that will handle it.
     
  6. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,962
    Likes Received:
    30
    On Tue, 06 Oct 2009 06:49:06 -0500, Joe Caverly <> wrote:

    |The only program that I know of that will display a directory listing of a compound document is the V program by Charles Prineas. Alas, this is a GUI, not a CLI.

    TCC will do it. Use DIR /: ...
    --
    - Vince
     
  7. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,190
    Likes Received:
    11
    The type of file you are showing is not a compound document. Compound
    documents are a COM construct that was developed back in the days when
    OLE2 came out and MS Office had a requirement to embed excel docs inside
    of word docs, etc. Compound documents do not have a filesystem dependency
    - i.e. they work just as well on FAT as they do on NTFS.

    What you are showing is a feature of NTFS called streams. 4NT/TCC has has
    support for streams for years. Use the /: switch on the DIR command.

    -Scott

    Joe Caverly <> wrote on 10/06/2009 07:48:48 AM:


     

Share This Page