Autor Beitrag
pHaRyNx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: So 08.10.06 15:32 
hi,

wie kann man mit delphi eine datei aus dem internet herunterladen? ich möchte, dass eine bestimmte datei per knopfdruck aus dem internet auf den pc geladen wird.

kann mir jemand helfen?

mfg pHaRyNx
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 08.10.06 15:52 
Suche in der Entwickler-Ecke DATEI DOWNLOADEN oder wenns ganz schlicht sein soll: Suche in der Entwickler-Ecke URLDOWNLOADTOFILE

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: So 08.10.06 15:52 
Such mal im Forum nach URLDownloadToFile.
//EDIT: Mist, zu langsam...

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
pHaRyNx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 94

win 95, win 2000, win xp, VISTA, Ubuntu 8.04
Delphi 7 PE
BeitragVerfasst: So 08.10.06 16:11 
ak, thx für euere antworten

ausblenden Delphi-Quelltext
1:
2:
3:
4:
Uses URLMON;
...

URLDownloadToFile(nil,'http://website.de/torrent/datei.exe''C:\irgendwas.exe'0nil);


EDIT: KLAPPT DOCH NICHT

ausblenden Delphi-Quelltext
1:
2:
3:
s:= 'http://website.de/torrent/datei.exe';
z:='C:\neu.exe';
UrlDownloadToFile(nil, PChar(S), PChar(z), 0nil);


^^das klappt ebensowenig :(

mfg pHaRyNx


Zuletzt bearbeitet von pHaRyNx am So 08.10.06 16:31, insgesamt 1-mal bearbeitet
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: So 08.10.06 16:15 
Ebenfalls möglich: Suche in der Entwickler-Ecke INTERNETREADFILE