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
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
> 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.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
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
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
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
Thread starter Title Forum Replies Date
H ZIP/UNZIP issues Support 4
C Documentation Help nix ZIP /M Support 0
Chen Touboul Failed to ZIP Support 9
I zip /M fails to delete file after adding to zip file Support 2
Joe Caverly 7zip command links to zip help Support 0
T How to? ZIP/7ZIP @listfile with folders Support 2
Joe Caverly UNZIPping older .ZIP files Support 3
M Is the sdk.zip file corrupted? Support 8
C ZIP/U compares wrong timestamp Support 13
C ZIP Support 0
R Fixed Internal ZIP command fails to process multiple files Support 3
vefatica ZIP? Support 13
D Zip errors on large files. Support 4
C ZIP .vs. PkZip Support 21
mikea Questions re: Internal ZIP command Support 5
S How to? Set the timestamp of ZIP command built archive to match latest member Support 8
C ZIP behavior Support 5
Frank ZIP: howto store directory in the zip-file Support 20
vefatica ZIP /U a little screwy Support 9
J zip wrong central directory signature Support 12
C Vince - your FTP'ed jpsupport.zip's Support 1
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
T Paths in ZIP Support 1
fpefpe zip command file size Support 1
T Zip and reparse points Support 7
J ZIP Help - minor quibble Support 0
H V12 Zip encryption Support 1
S ZIP support in next version? Support 1
vefatica ZIP's informative output Support 1
D Zip /q Support 0
S Version 11 ZIP /V - Permission denied on Network drive Support 2
S UNZIP all archives to separate subdirectory Support 10
C unzip problems Support 2
D unzip fails to find valid license Support 3
Jay Sage Fixed Mistake in Command Dialog for UNZIP Support 0
fishman@panix.com Inadequate HELP for UNZIP command. Support 3
H 12.10 UNZIP ignores destination path spec Support 2
Phileosophos unzip not using specified path Support 5
D unzip problem in tcmd 12 b 36 Support 3
nikbackm unzip issues in v12 Support 12
fishman@panix.com Unzip in 12.0 Support 1
H UNZIP /F and /U still not right 12.0.27 Support 0
H Unzip /F and /U not working in V12 Support 3
H V12 UNZIP very slow under certain circumstances Support 3
H UNZIP /U issue Support 0
Phileosophos Unzip doesn't extract to specified output folder Support 5
D unzip /d in directory with space in name Support 1
fishman@panix.com Problem with unzip Support 4
newbie UnInstall and ReInstall Take Cmnd v11.0 Support 4
J TCC v11 No longer portable Support 2

Similar threads