Windows 2008 R2 unzip command
Posted on 2013-01-23
I noticed that when a zip file is read using Win 2008 Explorer,
the Explorer is able to extract out the files from the zip.
In 7-zip, I can issue '7z -l zipfile' to view contents of a zip file
& as a way to verify the zip file's integrity is intact.
Without 7-zip, winzip or any 3rd party, what's the equivalent
Windows 2008 command to view the contents of a zip file
(without getting into Explorer).
Reason I need this is I'm writing a Windows batch script to
check integrity of a zip file that is ftp'ed (get) over from a
remote ftp server.
In 7-Zip, I'll issue "7z -l zipfile" & then test the errorlevel ie
7z -l zipfile
if %errorlevel% NEQ 0 echo zipfile is bad
if %errorlevel% EQ 0 echo zipfile is good