Урок на делфи 53. Архивируем папку


задание на delphi. Архивируем и разархивируем папку

unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,ShellAPI, Vcl.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
WinExec(PANsiChar('"C:\Program Files (x86)\7-Zip\7z.exe" a -tzip -mx7 -r0 c:\arxiv\1 c:\arxiv'),SW_HIDE);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
WinExec(PANsiChar('"C:\Program Files (x86)\7-Zip\7z.exe" x c:\arxiv\1.zip -o"c:\arxiv\2"'),SW_NORMAL);
end;
end.



Скачать