<?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[Probleme mit MoveFile bzw. CopyFile.]]></title><description><![CDATA[<p>Hi Leute ich habe ein Problem mit Copy,MoveFile,<br />
dass Problem ist ganz einfach es passiert nichts!!</p>
<pre><code>CopyFile(&quot;C:\\Users\\%USERNAME%\\Downloads\\vcredist_x64&quot;,&quot;C:\\Users\\%USERNAME%\\Documents\\vcredist_x64&quot;,false);
</code></pre>
<p>Dies ist der Code.<br />
Bitte fragt nicht wozu ich das brauche oder so.</p>
<p>Danke schonmal im Vorraus. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/320211/probleme-mit-movefile-bzw-copyfile</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 06:02:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/320211.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Sep 2013 12:35:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:35:40 GMT]]></title><description><![CDATA[<p>Hi Leute ich habe ein Problem mit Copy,MoveFile,<br />
dass Problem ist ganz einfach es passiert nichts!!</p>
<pre><code>CopyFile(&quot;C:\\Users\\%USERNAME%\\Downloads\\vcredist_x64&quot;,&quot;C:\\Users\\%USERNAME%\\Documents\\vcredist_x64&quot;,false);
</code></pre>
<p>Dies ist der Code.<br />
Bitte fragt nicht wozu ich das brauche oder so.</p>
<p>Danke schonmal im Vorraus. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354042</guid><dc:creator><![CDATA[DerTechniker123321]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:35:40 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:37:34 GMT]]></title><description><![CDATA[<p>OMG wenn man v.o.r.r.a.u.s sagt kommen da Sternchen.<br />
Ist doch kein Schimpfwort, oder?<br />
vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354044</guid><dc:creator><![CDATA[DerTechniker123321]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:46:17 GMT]]></title><description><![CDATA[<p>Es heißt ja auch voraus und nicht v o r r a u s.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354052</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:49:45 GMT]]></title><description><![CDATA[<p>Nathan schrieb:</p>
<blockquote>
<p>Es heißt ja auch voraus und nicht v o r r a u s.</p>
</blockquote>
<p>Verstanden können wir jetzt wieder auf die Frage zurückkommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354053</guid><dc:creator><![CDATA[DerTechniker123321]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:49:45 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:52:11 GMT]]></title><description><![CDATA[<p><code>CopyFile</code> ersetzt keine Platzhalter, du musst schon den konkreten Pfad angeben. Ausserdem erzeugt es keine Verzeichnisstruktur, die muss entweder vorhanden sein oder selbst erzeugt werden. <code>SHFileOperation</code> kann da mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354055</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:52:11 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:54:17 GMT]]></title><description><![CDATA[<p>DocShoe schrieb:</p>
<blockquote>
<p><code>CopyFile</code> ersetzt keine Platzhalter, du musst schon den konkreten Pfad angeben. Ausserdem erzeugt es keine Verzeichnisstruktur, die muss entweder vorhanden sein oder selbst erzeugt werden. <code>SHFileOperation</code> kann da mehr.</p>
</blockquote>
<p>Ich habe doch einen Konkreten Pfad gemacht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354057</guid><dc:creator><![CDATA[DerTechniker123321]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:54:17 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:57:56 GMT]]></title><description><![CDATA[<p>DerTechniker123321 schrieb:</p>
<blockquote>
<p>DocShoe schrieb:</p>
<blockquote>
<p><code>CopyFile</code> ersetzt keine Platzhalter, du musst schon den konkreten Pfad angeben. Ausserdem erzeugt es keine Verzeichnisstruktur, die muss entweder vorhanden sein oder selbst erzeugt werden. <code>SHFileOperation</code> kann da mehr.</p>
</blockquote>
<p>Ich habe doch einen Konkreten Pfad gemacht</p>
</blockquote>
<p>Das wirst du sicherlich Recht haben, %THREADERSTELLER%. %ANTWORTENDER% hat sich gewiss geirrt.</p>
<p>%FLOSKEL%</p>
<p>SeppJ.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354058</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:57:56 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:58:03 GMT]]></title><description><![CDATA[<p>Was an %USERNAME% ist konkret?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354059</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:58:23 GMT]]></title><description><![CDATA[<p>DerTechniker123321 schrieb:</p>
<blockquote>
<p>DocShoe schrieb:</p>
<blockquote>
<p><code>CopyFile</code> ersetzt keine Platzhalter, du musst schon den konkreten Pfad angeben. Ausserdem erzeugt es keine Verzeichnisstruktur, die muss entweder vorhanden sein oder selbst erzeugt werden. <code>SHFileOperation</code> kann da mehr.</p>
</blockquote>
<p>Ich habe doch einen Konkreten Pfad gemacht</p>
</blockquote>
<p>Oder weist du wie ichs richtig machen soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354060</guid><dc:creator><![CDATA[DerTechniker123321]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:58:23 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 12:59:57 GMT]]></title><description><![CDATA[<p>DerTechniker123321 schrieb:</p>
<blockquote>
<p>Nathan schrieb:</p>
<blockquote>
<p>Es heißt ja auch voraus und nicht v o r r a u s.</p>
</blockquote>
<p>Verstanden können wir jetzt wieder auf die Frage zurückkommen?</p>
</blockquote>
<p>Entschuldigung, du hattest doch danach gefragt.<br />
Kommt davon wenn man zwei Threads macht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354063</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354063</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Fri, 20 Sep 2013 12:59:57 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Fri, 20 Sep 2013 13:27:19 GMT]]></title><description><![CDATA[<p>DerTechniker123321 schrieb:</p>
<blockquote>
<p>DerTechniker123321 schrieb:</p>
<blockquote>
<p>DocShoe schrieb:</p>
<blockquote>
<p><code>CopyFile</code> ersetzt keine Platzhalter, du musst schon den konkreten Pfad angeben. Ausserdem erzeugt es keine Verzeichnisstruktur, die muss entweder vorhanden sein oder selbst erzeugt werden. <code>SHFileOperation</code> kann da mehr.</p>
</blockquote>
<p>Ich habe doch einen Konkreten Pfad gemacht</p>
</blockquote>
<p>Oder weist du wie ichs richtig machen soll?</p>
</blockquote>
<p>Ja, du kannst über <code>SHGetSpecialFolderPath</code> den konkreten Pfad für den aktuellen Benutzer ermitteln. Die Funktion erwartet als 3. Parameter eine CSIDL, für die der konkrete Pfad ermittelt werden soll. Jetzt musst du nur noch rausfinden, welche CSIDL du brauchst, aber das steht alles in der MSDN.</p>
<p>Edit:<br />
<code>CopyFile</code> hat einen Rückgabewert, darüber kannst du feststellen, ob der Aufruf erfolgreich war oder nicht. Im Fehlerfall kannst du mit <code>GetLastError</code> einen Fehlercode abfragen, der dir genau sagt, was schiefgelaufen ist. Und mit <code>FormatMessage</code> kannst du dir sogar die Fehlerbeschreibung im Klartext abholen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354078</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Fri, 20 Sep 2013 13:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit MoveFile bzw. CopyFile. on Sun, 22 Sep 2013 08:24:28 GMT]]></title><description><![CDATA[<p>Danke für die Antworten ich habs schon selber gelöst undzwar mit fstream.</p>
<p>Ich habe zeurst die dateien ausgelesen und dann in eine neue Datei hereinkopiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2354586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2354586</guid><dc:creator><![CDATA[DetTechniker123321]]></dc:creator><pubDate>Sun, 22 Sep 2013 08:24:28 GMT</pubDate></item></channel></rss>