CHKINZIP.EXE
(C)1990 Jeffrey S. Morley
All rights reserved
November 24, 1990
This little program is designed for use in batch files, to let you search a
.ZIP file and determine if a specific file (or extension) is contained in
the ZIP. I wrote this as a part of the Interconnect BBS .ZIP Lab, so I
could test for embedded .ZIP files or .TD0 files when testing an upload.
If I find either of these conditions, I can branch to a location in my
PCBTEST.BAT which will further test the upload by checking the embedded
.ZIP files, or by using TDCHECK.EXE to test the .TD0 (Teledisk) file. If
not, I can save the time required to unZIP the file.
*************************************************************************
I make an external call to PKUNZIP.EXE, so this file must be in the path.
*************************************************************************
The Syntax is as follows:
CHKINZIP [d:\path\]zipfile.zip filename/extension
CHKINZIP will return an ERRORLEVEL of 1 if the search was successful, and
an ERRORLEVEL of 0 if not.
Examples:
CHKINZIP c:\pcb\up\dcbb1190.zip focke.exe
This would return an ERRORLEVEL of 1, since focke.exe is in the file.
CHKINZIP c:\p\up\td0file.zip td0
This would also return an ERRORLEVEL of 1, since there is a TD0 file
in the .ZIP.
CHKINZIP is NOT public domain software, and I reserve all rights to the
program. It IS however "FreeWare", which means you may use and distribute
the program as you see fit, with no cost to you. The only restrictions
being:
1) You must distribute the program and documentation together, and in
original condition
2) You may NEVER charge for the program, including rip-off SIG libraries.
Jeffrey S. Morley
The Interconnect BBS
(703) 425-2505