Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi copyfileto, oder gibts was anderes? (https://www.delphipraxis.net/20218-copyfileto-oder-gibts-anderes.html)

glkgereon 14. Apr 2004 21:11


copyfileto, oder gibts was anderes?
 
also, bei mir funzt copyfileto nur im ordner, wo auch die exe-datei liegt.
hatwer ne ahnung warum?
oder gibts ne andere möglichkeit zu kopieren?

Vjay 14. Apr 2004 21:25

Re: copyfileto, oder gibts was anderes?
 
CopyFileTo??

Also wenn du Dateien kopieren willst, verwende den Befehl CopyFile.

glkgereon 14. Apr 2004 21:30

Re: copyfileto, oder gibts was anderes?
 
gibts das in d6?

Alexander 14. Apr 2004 21:36

Re: copyfileto, oder gibts was anderes?
 
Das gibt es eigentlich in jedem Delphi außer Delphi 8, weil es sich hier um ein WinAPI-Befehl handelt.
MSDN-Library durchsuchenCopyFile

Markus K. 14. Apr 2004 21:38

Re: copyfileto, oder gibts was anderes?
 
Hallo glkbkk,
ich denke schon...ist eine WinAPI-Funktion.
Code:
BOOL CopyFile
(
    LPCTSTR lpExistingFileName,   // pointer to name of an existing file
    LPCTSTR lpNewFileName,            // pointer to filename to copy to
    BOOL bFailIfExists             // flag for operation if file exists
    );
Tschüß Markus

glkgereon 15. Apr 2004 18:54

Re: copyfileto, oder gibts was anderes?
 
jetzt funzt es (mit beiden befehlen) nur, wenn ich auf ne andere partition als auf c kopiere...
versteht das einer??? :gruebel: :gruebel:

ähm, keine ahnung...


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz