<?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[Problem mit CFileFind]]></title><description><![CDATA[<p>Hallo nochmal,<br />
ich habe ein Problem mit der CFileFind Funktion:<br />
Beschreibung:</p>
<p>Mein QuellPfad:</p>
<p>C:\\temp1\\</p>
<p>hierunter stehen einige .html Datein und auch ein paar Ordner, die wiederunm<br />
Dateien und auch Ordner enthalten können.</p>
<p>Ich setze nun den FileFinder auf den QuellPfad an, der ließt mir alle Dateien<br />
aus und kopiert sie mir nach: &quot;C:\\temp2&quot; mit CopyFile(...).<br />
Die Ordner findet er zwar (er öffnet sie aber nicht - muss er das überhaupt ?)<br />
kopiert sie mir aber nicht nach: &quot;C:\\temp2&quot;.</p>
<p>Was mache ich falsch ?<br />
Hier mein Code:</p>
<p>NewPath = &quot;C:\\temp1\&quot;;<br />
OldPath = &quot;C:\\temp2\&quot;;</p>
<p>BOOL bWorking = finder.FindFile(&quot;C:\\temp1\*.*&quot;);<br />
while (bWorking)<br />
{<br />
bWorking = finder.FindNextFile();<br />
file_name = finder.GetFileName();</p>
<p>CopyFrom.Format(&quot;%s%s&quot;,OldPath,file_name);<br />
CopyTo.Format(&quot;%s%s&quot;,NewPath,file_name);<br />
CopyFile(CopyFrom,CopyTo,FALSE);<br />
}</p>
<p>Bin für jeden Tipp dankbar !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6035/problem-mit-cfilefind</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 08:53:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6035.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Jun 2003 08:35:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit CFileFind on Thu, 05 Jun 2003 08:35:00 GMT]]></title><description><![CDATA[<p>Hallo nochmal,<br />
ich habe ein Problem mit der CFileFind Funktion:<br />
Beschreibung:</p>
<p>Mein QuellPfad:</p>
<p>C:\\temp1\\</p>
<p>hierunter stehen einige .html Datein und auch ein paar Ordner, die wiederunm<br />
Dateien und auch Ordner enthalten können.</p>
<p>Ich setze nun den FileFinder auf den QuellPfad an, der ließt mir alle Dateien<br />
aus und kopiert sie mir nach: &quot;C:\\temp2&quot; mit CopyFile(...).<br />
Die Ordner findet er zwar (er öffnet sie aber nicht - muss er das überhaupt ?)<br />
kopiert sie mir aber nicht nach: &quot;C:\\temp2&quot;.</p>
<p>Was mache ich falsch ?<br />
Hier mein Code:</p>
<p>NewPath = &quot;C:\\temp1\&quot;;<br />
OldPath = &quot;C:\\temp2\&quot;;</p>
<p>BOOL bWorking = finder.FindFile(&quot;C:\\temp1\*.*&quot;);<br />
while (bWorking)<br />
{<br />
bWorking = finder.FindNextFile();<br />
file_name = finder.GetFileName();</p>
<p>CopyFrom.Format(&quot;%s%s&quot;,OldPath,file_name);<br />
CopyTo.Format(&quot;%s%s&quot;,NewPath,file_name);<br />
CopyFile(CopyFrom,CopyTo,FALSE);<br />
}</p>
<p>Bin für jeden Tipp dankbar !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29299</guid><dc:creator><![CDATA[Christian]]></dc:creator><pubDate>Thu, 05 Jun 2003 08:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CFileFind on Thu, 05 Jun 2003 08:45:00 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Könnte es daran liegen, dass du versuchst, von temp2 nach temp1 zu kopieren ?</p>
<p>Tschüss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29300</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Thu, 05 Jun 2003 08:45:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CFileFind on Thu, 05 Jun 2003 09:18:00 GMT]]></title><description><![CDATA[<p>Mist ich hab mich nur verschrieben; es muss heißen:</p>
<p>OldPath = &quot;C:\\temp1\&quot;;<br />
NewPath = &quot;C:\\temp2\&quot;;</p>
<p>BOOL bWorking = finder.FindFile(&quot;C:\\temp1\*.*&quot;);<br />
while (bWorking)<br />
{<br />
bWorking = finder.FindNextFile();<br />
file_name = finder.GetFileName();</p>
<p>CopyFrom.Format(&quot;%s%s&quot;,OldPath,file_name);<br />
CopyTo.Format(&quot;%s%s&quot;,NewPath,file_name);<br />
CopyFile(CopyFrom,CopyTo,FALSE);<br />
}</p>
<p>Das Problem ist natürlich das gleiche und noch nicht behoben;d.h. er kopiert mir nur die Dateien und nicht die Ordner.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29301</guid><dc:creator><![CDATA[Christian]]></dc:creator><pubDate>Thu, 05 Jun 2003 09:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CFileFind on Thu, 05 Jun 2003 09:22:00 GMT]]></title><description><![CDATA[<blockquote>
<p>BOOL bWorking = finder.FindFile(&quot;C:\\temp1\*.*&quot;);<br />
while (bWorking)<br />
{<br />
bWorking = finder.FindNextFile();<br />
file_name = finder.GetFileName();</p>
<p>CopyFrom.Format(&quot;%s%s&quot;,OldPath,file_name);<br />
CopyTo.Format(&quot;%s%s&quot;,NewPath,file_name);<br />
CopyFile(CopyFrom,CopyTo,FALSE);<br />
}</p>
</blockquote>
<p>Schau mal in der MSDN und FAQ unter dem Thema: &quot;Wie man CFileFind rekursiv und vor allem richtig benutzt&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/29302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/29302</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Thu, 05 Jun 2003 09:22:00 GMT</pubDate></item></channel></rss>