03-02-2009, 12:49 AM
هنالك طريقة جميلة و بسيطة تعتمد على مكون ZipForge (وهو مجاني للإستعمال الشخصي) ، نصنع به ملف zip يحتوي على كل الملفات المراد أرشفتها.
الموقع : http://www.componentace.com/download/dow...itionid=12
طريقة الإستعمال :
الموقع : http://www.componentace.com/download/dow...itionid=12
طريقة الإستعمال :
كود :
with ZipForge1 do
begin
FileName :=ExtractFilePath(application.exename)+'archive\'+'arch.'+FormatDateTime('dd.mm.yy',Date)+'.zip';
// Create a new archive file
OpenArchive(fmCreate);
// Set path to folder with some text files to BaseDir
BaseDir :=ExtractFilePath(application.ExeName);
AddFiles('*.db'); // set filter
CloseArchive;
MessageDlg('L''archive '+QuotedStr(Zipforge1.FileName)+' a été créée avec succès.', mtInformation, [mbOK], 0);
end;:: رب يسر ولا تعسر رب سهل وتمم بالخير ::

