John Fitzsimons <
[email protected]> wrote:
The thought of checking thousands of zip files one by one with my
unzip program does NOT appeal.
That would be a chore!
Well, I want to check all the files on my computer. Not just one
directory. Though almost every file I want to check is in fact in one
directory.
I use winzip and AFAIK it doesn't have a commandline version. Will
consider finding/using pkunzip if it is still freeware. Thanks for the
help.
pk is shareware unfortunately. Give this one a try:
unzip.exe (30.4 Kb)Freeware unzip utility
http://www.greatware.com/gr08000.htm
"Greatware zipped files are compressed with world standard Pkzip(tm)
format. This file is a freeware Pkzip compatable unzip utility that
will unzip our *.zip files."
This will take some work though. It doesn't support wildcards
You can get a list of all zip files on a drive in the format that will
allow for easy conversion to a bat file by typing at a prompt:
dir /s/b/l c:\ > c:\myzips.txt
You would have to use replace to add "unzip -t " at the beginning of
each line of myzips.txt and " >> result.txt" to the end of each line.
I tried it and ran it as a bat and it creates a huge file that does
not highlight the bad files. Not so smooth...
Perhaps better: Use ZipScan, 107,949 bytes.
http://woundedmoon.org/win32/zipscan.html
This is actually a program to search for text strings. I set it to
search C:\ with the first two boxes checked to recursively search
subdirectories and archives. I used a "normal" search of "9999",
as I'm not really wanting to find the search term. It went through and
found all .zip files and made a neat error log which details what you
are seeking.
"The file C:\WM\httpdocs\scenic\scenic3.zip does not appears to be a
valid Zip file (Could not find Central Record)"
The above was an aborted download I never got back to.
You might delete "C:\Windows\Temp" before you run it. I had a bunch of
old zip files in there that were not properly deleted. It just clogged
up the error log. "C:\Windows\Temporary Internet Files" also had some
corrupted zip files in it.
Unfortunately, it works only on .zip, .cab and .jar extensions. It has
no ability to test self extracting executables. This part is tough.
Not all SFX's are pk compatible and they show as corrupted if tested.
I just tried my last SpywareBlaster.exe download and it shows as
corrupt, but it isn't. It is just not pk compatible. It would have
been far better to use an .sfx extension, rather than the .exe
extension. It is difficult to tell what is an archive file and what is
a program file.
This will get your .zip files though, I hope, in an easy fashion.