Link to home
Start Free TrialLog in
Avatar of johnbowden
johnbowdenFlag for Canada

asked on

ftp data archive corrupted when downloaded from site

I have a site that we archive 4 directories to 4 different archives. After that, I create one archive with all 4 archives and then it is uploaded to an ftp server. To test the archive locally, the main archive extracts the 4 archives properly and each of the 4 archives extract properly.
Now when I download the one archive off of the ftp site, I can't open it. I downloaded a program called BitZipper and when I extract the archive, it tells me that the local header is damaged. I can still extract the 4 archives though. Each of the 4 archives extracted all give me the same error about the local header is damaged but I am able to extract all of the files.

My batch file is as follows
Pkzip25 -add -lev9 -rec c:\batch\data1.zip e:\data\*.*
(this is the same for the other 3 directories that I archive. Then I run this
Pkzip25 -add -lev0 -rec c:\batch\alldata.zip c:\batch\*.zip
I log into the ftp site
Delete the existing file
Set the data to binary
Put c:\batch\alldata.zip
ASKER CERTIFIED SOLUTION
Avatar of warrenbuckles
warrenbuckles

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnbowden

ASKER

I will try that
Thanks