Solved

Unzipping

Posted on 2012-03-21
5
299 Views
Last Modified: 2012-03-22
Hi experts!

I ran a .cmd file which contains the following statements:

----------------------------------------------------------------------------------------------------------------------------------------
REM - set the date
for /f "tokens=1,2,3 delims=/ " %%a in ('DATE /T') do set date=%%c-%%b-%%a
set DATE=%date%
set DAY=%DATE:~0,2%
c:
cd \zip
zip c:\folder1\XXX_%DATE%.zip -r -q c:\folder2\
-----------------------------------------------------------------------------------------------------------------------------------------
The file XXX_%DATE%.zip is about 350MB and is on one of my servers.
Then I copied it into a local machine and unzip it (WinZip 14.0 Pro) and surprisingly only about 10% of the source folders were rebuilt into the destination.

Please help.

Thanks,
Duke
0
Comment
Question by:Duke001
  • 2
  • 2
5 Comments
 
LVL 44

Assisted Solution

by:Darr247
Darr247 earned 50 total points
Comment Utility
Care to post the contents of zip.bat ?

Last I knew, WinZip's command line programs were wzzip and wzunzip, so the only way I see that working at all is if 'zip' is a batch or else not winzip.
0
 

Author Comment

by:Duke001
Comment Utility
Hi Darr247!

When i said "unzip it" I should have said "extract" from within WinZip 14.0 Pro.
So, may I infer that I should use the command unzip from the command line or from a batch file?

Thanks
Duke
0
 
LVL 6

Expert Comment

by:rushtoshankar
Comment Utility
are you able to extract 100% of the file using windows explorer and a compression utility?

if you are able to extract, then check the utility that you are using for extranction (zip.exe/zip.com/zip.bat). Or please let us know the utility name, version etc. Hopefully, --v or --version will provide version info of the command line tool.

if you are not able to extract the zip file, the file must be a corrupted file.
0
 

Author Comment

by:Duke001
Comment Utility
I managed to find a solution. I've download "7-Zip 9.20" and have extracted the entire set of folder/files.

Last question before I attribute the points - is the software above reliable?

Thanks
Duke
0
 
LVL 6

Accepted Solution

by:
rushtoshankar earned 200 total points
Comment Utility
7 zip is very good program. I am using this program for many years both @ office and @home. It is open source. No licensing required.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mergeTwo  challenge 13 71
for loop with Set 4 45
countX 22 68
create an incrementing variable name AutoHotKey 5 56
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now