ZIP, UNZIP v11 Beta

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
 
Could you email me (directly to rconn@jpsoft.com) your compound document so I can test it here?

Thanks.

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
 
> 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.

TCC already can -- "dir /:".

But I haven't found any zip program that will handle it.
 
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
 
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:


> ---Quote (Originally by rconn)---
> Could you email me (directly to rconn@jpsoft.com) your compound
> document so I can test it here?
>
> Thanks.
> ---End Quote---
> 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
>
>
>
>
 

Similar threads