![]() |
Re: Einfaches Kopieren "ohne Error"
Ich greife mal folgende Zeilen aus deinem Code:
Delphi-Quellcode:
Ziemlich blöd, dass man nicht sieht, WAS eigentlich kopiert wird. Deshalb:
Memo1.Lines.Add('Kopiere Datei...');
CopyFile(Pchar('.\' + list[c]), Pchar('.\' + t.Artist + '\' + list[c]), true);
Delphi-Quellcode:
Durch die beiden Zwischenvariablen quelle und ziel wird alles viel klarer und einfacher.
quelle := '.\' + list[c];
ziel := '.\' + t.Artist + '\' + list[c]; Memo1.Lines.Add(Format('Kopiere Datei <%s> -> <%s>...',[quelle, ziel])); CopyFile(Pchar(quelle), Pchar(ziel), true); Auch für Dich als Programmierer werden Probleme sofort sichtbar; vielleicht steckt in t.Artist ein Backslash oder ein Doppelpunkt... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:29 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