I'm trying to do a kind of wget front-end, and I have a big problem with Tprocess... the program executes well programs but never appears the index.html file I try todownload for testing. I'm not sure if it's downloaded and I can't find it or it don't work at all.
procedure TForm1.BitBtn3Click(Sender: TObject);
var AStringList: TStringList;
begin
AStringList := TStringList.Create;
Process1.CommandLine := 'wget '+ edit1.Text;
Process1.CurrentDirectory := '/home/isaac/';
form1.Caption:= Process1.CommandLine;
Process1.Options := Process1.Options + [poWaitOnExit];
Process1.Execute;
AStringList.Free;
end;
I hope somebody can help me.