Einzelnen Beitrag anzeigen

horst

Registriert seit: 1. Jul 2003
347 Beiträge
 
Delphi 2007 Professional
 
#8

Re: Mehrere Dateien downloaden

  Alt 3. Feb 2004, 22:45
ich habs

Delphi-Quellcode:
procedure TForm1.DateienausdemInternetdownloaden1Click(Sender: TObject);
var
  SourceFile, DestFile, Source: string;
  i, j: integer;
  s: string;
begin
  for i := 0 to memo3.lines.count - 1 do
  begin
    sourcefile := memo3.lines.strings[i];
    s := ExtractUrlFileName(sourcefile);
    destfile := (extractfilepath(application.exename) + ('\html\')) + s;
    if DownloadFile(SourceFile, DestFile) then
    begin
      ShowMessage('Download succesful!');
    end
    else
      ShowMessage('Mit dem Internet verbunden? Kann' + ' ' + SourceFile + ' nicht downloaden')
  end;
end;
  Mit Zitat antworten Zitat