Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#3

AW: 2+ Datein bzw. ganzen Ordner packen.

  Alt 18. Jul 2014, 07:56
Ja, ab XE2 ist es einfach:

http://stackoverflow.com/questions/1...r-using-delphi
http://delphiblog.twodesk.com/native...-in-delphi-xe2

If you are using Delphi X2, just use TZipFile from System.Zip:

Delphi-Quellcode:
//To Zip a folder, use:

TZipFile.ZipDirectoryContents('ZipFile.zip', 'C:\Zip\this\right\now');

//To Zip files, use:

Zip := TZipFile.Create;
try
  Zip.Open('ZipFile.zip', zmWrite);

  Zip.Add('FileToBeZipped.txt')
  Zip.Add('ThisWillBeCompressedAgainForSureAndBecomeSmaller.zip')
finally
  Zip.Free;
end

Geändert von hathor (18. Jul 2014 um 08:04 Uhr)
  Mit Zitat antworten Zitat