Posted on 2012-03-21
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%
cd \zip
zip c:\folder1\ -r -q c:\folder2\
The file 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.

Question by:Duke001
  • 2
  • 2
LVL 44

Assisted Solution

Darr247 earned 50 total points
ID: 37749147
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.

Author Comment

ID: 37749478
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?


Expert Comment

ID: 37749512
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/ 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.

Author Comment

ID: 37752131
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?


Accepted Solution

rushtoshankar earned 200 total points
ID: 37752473
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.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

22 Experts available now in Live!

Get 1:1 Help Now