<?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[copy file löst error aus]]></title><description><![CDATA[<p>Hab mal ein Grundgerüst für späters Datein kopieren geschrieben ist zwar etwas umständlichv mit dem ewigen char aber es läuft vorehrst ohne murren durcb den compilier nur beim ausführen kommt die Windows felhlermeldung könnt ihr mir helfen ?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;windows.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    char *old = &quot;C:\\Dokumente und Einstellungen\\Dirk\\Eigene Dateien\\c++ data\\autoexe.exe&quot;;
    char *a = &quot;a&quot;;
    char *neu1 =(&quot;C:\\Dokumente und Einstellungen\\All Users\\Startmenü\\Programme\\autoexe&quot;);
    char *neu2 = strcat(neu1,a);
    char *neu3 = strcat (neu2,&quot;.exe&quot;);
    CopyFile(old,neu3,0);

}
</code></pre>
<p>danke euch</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/215332/copy-file-löst-error-aus</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 08:43:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/215332.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jun 2008 16:16:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 16:16:08 GMT]]></title><description><![CDATA[<p>Hab mal ein Grundgerüst für späters Datein kopieren geschrieben ist zwar etwas umständlichv mit dem ewigen char aber es läuft vorehrst ohne murren durcb den compilier nur beim ausführen kommt die Windows felhlermeldung könnt ihr mir helfen ?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;windows.h&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    char *old = &quot;C:\\Dokumente und Einstellungen\\Dirk\\Eigene Dateien\\c++ data\\autoexe.exe&quot;;
    char *a = &quot;a&quot;;
    char *neu1 =(&quot;C:\\Dokumente und Einstellungen\\All Users\\Startmenü\\Programme\\autoexe&quot;);
    char *neu2 = strcat(neu1,a);
    char *neu3 = strcat (neu2,&quot;.exe&quot;);
    CopyFile(old,neu3,0);

}
</code></pre>
<p>danke euch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525849</guid><dc:creator><![CDATA[dirk1983]]></dc:creator><pubDate>Mon, 09 Jun 2008 16:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 16:34:42 GMT]]></title><description><![CDATA[<p>Zieltyp ist zu klein.</p>
<p><a href="http://www.cplusplus.com/reference/clibrary/cstring/strcat.html" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cstring/strcat.html</a></p>
<p>Benutz lieber C++ Mittel. Ist einfacher und sicherer.</p>
<p>std::string wäre hier das Mittel der Wahl.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525859</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 09 Jun 2008 16:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 17:13:31 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>Zieltyp ist zu klein.</p>
<p><a href="http://www.cplusplus.com/reference/clibrary/cstring/strcat.html" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cstring/strcat.html</a></p>
<p>Benutz lieber C++ Mittel. Ist einfacher und sicherer.</p>
<p>std::string wäre hier das Mittel der Wahl.</p>
</blockquote>
<p>so gehts aber auch net</p>
<p>#include &lt;iostream&gt;<br />
#include &lt;windows.h&gt;<br />
#include &lt;string&gt;<br />
using namespace std;</p>
<p>int main()<br />
{<br />
char *old = &quot;C:\\Dokumente und Einstellungen\\Dirk\\Eigene Dateien\\c++ data\\autoexe.exe&quot;;<br />
char *neu1 =(&quot;C:\\Dokumente und Einstellungen\\All Users\\Startmenü\\Programme\\autoexe&quot;);<br />
strcat (neu1,&quot;a&quot;);<br />
strcat (neu1,&quot;.exe&quot;);<br />
CopyFile(old,neu1,0);</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525898</guid><dc:creator><![CDATA[dirk1983]]></dc:creator><pubDate>Mon, 09 Jun 2008 17:13:31 GMT</pubDate></item><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 17:18:08 GMT]]></title><description><![CDATA[<p>Dirk, Du hast den von Dir zitierten Text geflissen ignoriert. Verwende 'std::string' statt 'char*'.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525904</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Mon, 09 Jun 2008 17:18:08 GMT</pubDate></item><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 17:29:46 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Dirk, Du hast den von Dir zitierten Text geflissen ignoriert. Verwende 'std::string' statt 'char*'.</p>
</blockquote>
<p>ups da hab ich einfach nur den link angeklicket shame on me</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525916</guid><dc:creator><![CDATA[dirk1983]]></dc:creator><pubDate>Mon, 09 Jun 2008 17:29:46 GMT</pubDate></item><item><title><![CDATA[Reply to copy file löst error aus on Mon, 09 Jun 2008 18:01:00 GMT]]></title><description><![CDATA[<p>Im übrigen hat sich an der Grösse von neu1 immer noch nichts geändert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1525942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1525942</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 09 Jun 2008 18:01:00 GMT</pubDate></item></channel></rss>