|
Post by mazoom on Apr 13, 2010 11:18:53 GMT -5
I have a problem on VCLZIP component. I use Delphi 2010.
I want to create a zip without the relative path inside.
Here is the delphi code: ----------------------------
PathFile := 'c:/KubizWS/temp/'; NomeFile := 'popo';
NumberZipped := 0;
try VCLZip1.ClearZip;
VCLZip1.ZipName := PathFile + NomeFile + '.zip'; VCLZip1.FilesList.Add(PathFile + NomeFile + '.txt');
// Keep path information // VCLZip1.StorePaths := false;
// Highest level of compression // VCLZip1.PackLevel := 9;
NumberZipped := VCLZip1.Zip; except end; -----------------------------
After execute this code, the zip file created popo.zip contain the path KubizWS\temp\
I need to create the zip without the path.
Any help?
thanks
|
|
|
Post by jerryirons on Apr 20, 2010 7:55:11 GMT -5
Check out the storepaths property in the help file. There are other properties that can influence that value, like storevolumes, relativepaths, etc
|
|