Autor Beitrag
Hochhäusl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Di 22.04.03 10:30 
Hi,

wie kann man mit Delphi Dateien verschieben oder kopieren?

mfg

H.t.
delphiDeveloper
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Di 22.04.03 13:34 
Titel: Funktion CopyFile
BOOL CopyFile(LPCTSTR lpszExistingFile, LPCTSTR lpszNewFile, BOOL fFailIfExists)

oder wenn du mehr funkionalitaet wuenschst schau dir mal FileWorks an:
delphiworks.sourcefo...ldstuff/Overview.htm
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 22.04.03 14:34 
Hi,

versuch es mal mit CopyFile (Unit ShellAPI). Zum Beispiel so:
ausblenden Quelltext
1:
2:
3:
4:
fileSource := 'C:\SourceFile.txt'; 
fileDest := 'G:\DestFile.txt'; 

CopyFile (PChar (fileSource), PChar (fileDest), False);

Oder such mal hier im Forum nach: SHFileOperation.

Gruß
Tino