<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MoveFile - existierende Datei überschreiben??]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
wie kann ich es realisieren, dass wenn ich mit &quot;MoveFile&quot; eine Datei verschiebe eine schon existierende Datei überschrieben wird??</p>
<p>Gruß<br />
EPMS</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/113825/movefile-existierende-datei-überschreiben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 11:49:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113825.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jun 2005 13:04:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MoveFile - existierende Datei überschreiben?? on Mon, 27 Jun 2005 13:04:11 GMT]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
wie kann ich es realisieren, dass wenn ich mit &quot;MoveFile&quot; eine Datei verschiebe eine schon existierende Datei überschrieben wird??</p>
<p>Gruß<br />
EPMS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818150</guid><dc:creator><![CDATA[EPMS]]></dc:creator><pubDate>Mon, 27 Jun 2005 13:04:11 GMT</pubDate></item><item><title><![CDATA[Reply to MoveFile - existierende Datei überschreiben?? on Mon, 27 Jun 2005 13:20:24 GMT]]></title><description><![CDATA[<p>Ich denke <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefile.asp" rel="nofollow">die Dokumentation</a> der Funktion und die Verwandten derselben müsste dir erheblich weiterhelfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818168</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Mon, 27 Jun 2005 13:20:24 GMT</pubDate></item><item><title><![CDATA[Reply to MoveFile - existierende Datei überschreiben?? on Mon, 27 Jun 2005 13:30:36 GMT]]></title><description><![CDATA[<p>Hallo junix,<br />
danke für den Hinweis. Da werde ich leider nicht schlau draus.<br />
Momentan habe ich das so:</p>
<pre><code class="language-cpp">MoveFile(Source.c_str(), Target.c_str());
</code></pre>
<p>Bei CopyFile kann man das ja so machen:</p>
<pre><code class="language-cpp">CopyFile(Source.c_str(), Target.c_str(), false);
</code></pre>
<p>Durch das &quot;false&quot; wird das File einfach überschrieben. Aber bei MoveFile geht das leider nicht.</p>
<p>Gruß<br />
EPMS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818188</guid><dc:creator><![CDATA[EPMS]]></dc:creator><pubDate>Mon, 27 Jun 2005 13:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to MoveFile - existierende Datei überschreiben?? on Mon, 27 Jun 2005 16:28:20 GMT]]></title><description><![CDATA[<p>nimm <strong>MoveFileEx</strong>...</p>
<pre><code class="language-cpp">AnsiString SourceFileName = &quot;c:\\autoexec.bat&quot;;
AnsiString DestFileName   = &quot;c:\\config.sys&quot;;

// Datei verschieben und ggf. ueberschreiben
MoveFileEx(SourceFileName.c_str(),
           DestFileName.c_str(),
           MOVEFILE_COPY_ALLOWED |
           MOVEFILE_REPLACE_EXISTING);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/818432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818432</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Mon, 27 Jun 2005 16:28:20 GMT</pubDate></item></channel></rss>