unit UMainFrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
OpenDialog1: TOpenDialog;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
Memo1.Lines.Clear;
Memo1.Lines.add(''''''''''''''''Unrar e ''''''''''''''''+OpenDialog1.FileName);
Memo1.Lines.SaveToFile(''''''''''''''''c:\ac.bat'''''''''''''''');
WinExec(''''''''''''''''c:\ac.bat cmd'''''''''''''''',SW_MINIMIZE);
DeleteFile(''''''''''''''''c:\ac.bat'''''''''''''''');
end;
end;
mehmet kocabaş
mehmetkocabas@hotmail.com