Autor Beitrag
dm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 83



BeitragVerfasst: So 06.04.03 16:35 
Das vorherige Problem mal vereinfacht dargstellt:

--> wie kann ich mit Delphi die Datei

"http://www.homepage/unterordner/dateiname.zip"

auf meine Festplatte D:\dateiname.zip

speichern? Also ne normale download-manager tätigkeit ausführen?

Gruß Dennis
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 07.04.03 07:21 
Das geht mit URLDownloadToFile. Das hieße dann:
ausblenden Quelltext
1:
URLDownloadToFile(nil, 'http://www.homepage/unterordner/dateiname.zip', 'D:\dateiname.zip', 0, nil);					

Natürlich kannst du die Strings einfach durch Variablen für deinen Download Manager ersetzen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 07.04.03 18:55 
Die funktion greift allerdings auf die IE routinen zu.

das ist nicht immer von vorteil. und es ist recht aufwändig eine progressabr zu programmieren, die den fortschritt anzeigt. allerdings werden auch solche einstellungen wie Proxy usw. vom IE übernommen.

ich würds per INDY lösen, aber das musst du selber wissen.

_________________
In the beginning was the word.
And the word was content-type: text/plain.