Recent

Author Topic: Create zip archive with password protection  (Read 1763 times)

eddy16391

  • New member
  • *
  • Posts: 9
Create zip archive with password protection
« on: November 16, 2018, 11:21:48 am »
Hi everyone,
I'm trying to create a zip archive with password protection.
With TZipper I can create the archive but without password, and so I tried Abbrevia, but I can't understand how to add files to the zip archive.
Anyone know how to use it or how to add a password protection to TZipper?
Thank you.

nummer8

  • Full Member
  • ***
  • Posts: 111
Re: Create zip archive with password protection
« Reply #1 on: November 16, 2018, 01:00:49 pm »
Hi,
Here a little piece of incomplete code to create an archive.

Code: Pascal  [Select][+][-]
  1.   AbZipper.Password:='secret'; //archives password
  2.   AbZipper.Filename := 'Archive.zip' //archives name
  3.   AbZipper.BaseDirectory := 'c:\files';
  4.   AbZipper.AddFiles('*.txt',0);
  5.   AbZipper.save;
  6.   AbZipper.CloseArchive;
  7.  


 

TinyPortal © 2005-2018