testzip.pp 832 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. $Id: header,v 1.1 2000/07/13 06:33:45 michael Exp $
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1999-2000 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {$mode objfpc}
  12. {$h+}
  13. Program testzip;
  14. uses Classes,Zipper;
  15. Var
  16. S : TStringList;
  17. I : Integer;
  18. begin
  19. S:=TStringList.Create;
  20. For I:=2 to ParamCount do
  21. S.Add(ParamStr(I));
  22. With TZipper.Create do
  23. try
  24. ZipFiles(ParamStr(1),S);
  25. Finally
  26. Free;
  27. end;
  28. end.