Autor Beitrag
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 08.06.07 01:09 
Hallo,

ich gehe momentan fremd und bastele ein wenig mit Freepascal herum. Num möchte ich aus meinem Programm einfach nur eine Datei kopieren Ich hätte drauf getippt das es in fp eine implementierung von CopyFile gibt, aber den scheint nicht so zu sein. Auch etwas ähnliches konnte ich bisher nicht finden.

Daher meine Frage gibt es in FreePascal einen, mögliches Platformunabhängigen, Befehl zum Kopieren von Dateien, oder muss ich mir den selber bauen?

Gruß
Klabautermann
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Fr 08.06.07 09:11 
CopyFile kommt nicht von Delphi, sondern ist eine Windows-API Funktion. In Linux gibt es sicherlich ein Gegenstück dazu. Ich würde eine Wrapper-Funktion bauen, die die jeweilige Systemfunktion aufruft.

Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.
Klabautermann Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 08.06.07 12:45 
Hi,

aber von haus aus gibt es eine solche noch nicht?

Gruß
Klabautermann
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Fr 08.06.07 15:37 
Hi,

vielleicht hilft dir dieser Thread weiter...

Gruß

Calculon
--