AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

Was bewirkt das true/false in CopyFile ?

Ein Thema von Rapthor · begonnen am 14. Okt 2003 · letzter Beitrag vom 14. Okt 2003
Antwort Antwort
Rapthor

Registriert seit: 30. Nov 2002
139 Beiträge
 
#1

Was bewirkt das true/false in CopyFile ?

  Alt 14. Okt 2003, 16:05
Wozu dient der 3. Parameter in der CopyFile Anweisung eigentlich ? Ist ja ein Boolean Wert.
  Mit Zitat antworten Zitat
neolithos

Registriert seit: 31. Jul 2003
Ort: Dresden
1.386 Beiträge
 
Delphi 7 Architect
 
#2

Re: Was bewirkt das true/false in CopyFile ?

  Alt 14. Okt 2003, 16:10
Zitat von MSDN:
bFailIfExists
[in] Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
- ciao neo -
Es gibt niemals dumme Fragen, sondern nur dumme Antworten!
  Mit Zitat antworten Zitat
CalganX

Registriert seit: 21. Jul 2002
Ort: Bonn
5.403 Beiträge
 
Turbo Delphi für Win32
 
#3

Re: Was bewirkt das true/false in CopyFile ?

  Alt 14. Okt 2003, 16:12
Hi,
wenn true, dann gibt es eine Fehlermeldung, wenn die Zieldatei schon existiert.

Chris
  Mit Zitat antworten Zitat
Tom

Registriert seit: 7. Jan 2003
318 Beiträge
 
RAD-Studio 2009 Pro
 
#4

Re: Was bewirkt das true/false in CopyFile ?

  Alt 14. Okt 2003, 16:12
Zitat:
bFailIfExists

Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
In etwas freier Übersetzung
Zitat:
bFailIfExists

Gibt an, wie dieser Betrieb fortfahren soll, wenn eine Akte des gleichen Namens als daß angegeben durch lpNewFileName schon existiert. Wenn dieser Parameter WAHR und die neue Akte schon existiert ist, versagt die Funktion. Wenn dieser Parameter FALSCH und die neue Akte schon existiert ist, überschreibt die Funktion das existierende ablegt und gelingt.
Zugegeben: Ich bin heute komisch drauf ...
  Mit Zitat antworten Zitat
Rapthor

Registriert seit: 30. Nov 2002
139 Beiträge
 
#5

Re: Was bewirkt das true/false in CopyFile ?

  Alt 14. Okt 2003, 17:33
dankeschön
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:51 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz