<?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[Festplatte durchsuchen]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich habe ein Suchstring TCHAR search[MAX_PATH] und nach diesem soll ein verzeichnis / platte mit underverzeichnissen durchsucht werden.<br />
der string soll nur in den dateinamen / ordnern vorkommen.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189152/festplatte-durchsuchen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 01:57:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189152.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Aug 2007 08:40:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Festplatte durchsuchen on Thu, 09 Aug 2007 08:40:54 GMT]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich habe ein Suchstring TCHAR search[MAX_PATH] und nach diesem soll ein verzeichnis / platte mit underverzeichnissen durchsucht werden.<br />
der string soll nur in den dateinamen / ordnern vorkommen.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341287</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Thu, 09 Aug 2007 08:40:54 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Thu, 09 Aug 2007 09:31:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">WIN32_FIND_DATA w32Find;

//erst
HANDLE hFile = FindFirstFile(&quot;suchstring&quot;, &amp;w32Find);//  (für &quot;erste&quot; datei) 

//dann
while(FindNextFile(hFile, &amp;w32Find) //(für die weiteren dateien)

//und wieder schließen
FindClose(hFile);
</code></pre>
<blockquote>
<p>WIN32_FIND_DATA<br />
The WIN32_FIND_DATA structure describes a file found by the FindFirstFile, FindFirstFileEx, or FindNextFile function.</p>
<p>typedef struct _WIN32_FIND_DATA { // wfd<br />
DWORD dwFileAttributes;<br />
FILETIME ftCreationTime;<br />
FILETIME ftLastAccessTime;<br />
FILETIME ftLastWriteTime;<br />
DWORD nFileSizeHigh;<br />
DWORD nFileSizeLow;<br />
DWORD dwReserved0;<br />
DWORD dwReserved1;<br />
TCHAR cFileName[ MAX_PATH ];<br />
TCHAR cAlternateFileName[ 14 ];<br />
} WIN32_FIND_DATA;</p>
<p>Members<br />
dwFileAttributes<br />
Specifies the file attributes of the file found. This member can be one or more of the following values: Attribute Meaning</p>
<p>FILE_ATTRIBUTE_ARCHIVE The file or directory is an archive file or directory. Applications use this attribute to mark files for backup or removal.</p>
<p>FILE_ATTRIBUTE_COMPRESSED The file or directory is compressed. For a file, this means that all of the data in the file is compressed. For a directory, this means that compression is the default for newly created files and subdirectories.</p>
<p>FILE_ATTRIBUTE_DIRECTORY The handle identifies a directory.</p>
<p>FILE_ATTRIBUTE_ENCRYPTED The file or directory is encrypted. For a file, this means that all data streams are encrypted. For a directory, this means that encryption is the default for newly created files and subdirectories.</p>
<p>FILE_ATTRIBUTE_HIDDEN The file or directory is hidden. It is not included in an ordinary directory listing.</p>
<p>FILE_ATTRIBUTE_NORMAL The file or directory has no other attributes set. This attribute is valid only if used alone.</p>
<p>FILE_ATTRIBUTE_OFFLINE The file data is not immediately available. Indicates that the file data has been physically moved to offline storage.</p>
<p>FILE_ATTRIBUTE_READONLY The file or directory is read-only. Applications can read the file but cannot write to it or delete it. In the case of a directory, applications cannot delete it.</p>
<p>FILE_ATTRIBUTE_REPARSE_POINT The file has an associated reparse point.</p>
<p>FILE_ATTRIBUTE_SPARSE_FILE The file is a sparse file.</p>
<p>FILE_ATTRIBUTE_SYSTEM The file or directory is part of the operating system or is used exclusively by the operating system.</p>
<p>FILE_ATTRIBUTE_TEMPORARY The file is being used for temporary storage. File systems attempt to keep all of the data in memory for quicker access, rather than flushing it back to mass storage. A temporary file should be deleted by the application as soon as it is no longer needed.</p>
<p>ftCreationTime<br />
Specifies a FILETIME structure containing the time the file was created. FindFirstFile and FindNextFile report file times in Coordinated Universal Time (UTC) format. These functions set the FILETIME members to zero if the file system containing the file does not support this time member. You can use the</p>
<p>FileTimeToLocalFileTime function to convert from UTC to local time, and then use the FileTimeToSystemTime function to convert the local time to a SYSTEMTIME structure containing individual members for the month, day, year, weekday, hour, minute, second, and millisecond.</p>
<p>ftLastAccessTime<br />
Specifies a FILETIME structure containing the time that the file was last accessed. The time is in UTC format; the FILETIME members are zero if the file system does not support this time member.</p>
<p>ftLastWriteTime<br />
Specifies a FILETIME structure containing the time that the file was last written to. The time is in UTC format; the FILETIME members are zero if the file system does not support this time member.</p>
<p>nFileSizeHigh<br />
Specifies the high-order DWORD value of the file size, in bytes. This value is zero unless the file size is greater than MAXDWORD. The size of the file is equal to (nFileSizeHigh * MAXDWORD) + nFileSizeLow.</p>
<p>nFileSizeLow<br />
Specifies the low-order DWORD value of the file size, in bytes.</p>
<p>dwReserved0<br />
If the dwFileAttributes member includes the FILE_ATTRIBUTE_REPARSE_POINT attribute, this member specifies the reparse tag. Otherwise, this value is undefined and should not be used.</p>
<p>dwReserved1<br />
Reserved for future use.</p>
<p>cFileName<br />
A null-terminated string that is the name of the file.</p>
<p>cAlternateFileName<br />
A null-terminated string that is an alternative name for the file. This name is in the classic 8.3 (filename.ext) filename format.</p>
<p>Remarks<br />
If a file has a long filename, the complete name appears in the cFileName field, and the 8.3 format truncated version of the name appears in the cAlternateFileName field. Otherwise, cAlternateFileName is empty. As an alternative, you can use the GetShortPathName function to find the 8.3 format version of a filename.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1341334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341334</guid><dc:creator><![CDATA[Schandmaul]]></dc:creator><pubDate>Thu, 09 Aug 2007 09:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Thu, 09 Aug 2007 09:34:15 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-US/library/aa365527.aspx" rel="nofollow">http://msdn2.microsoft.com/en-US/library/aa365527.aspx</a></p>
<p>Damit kannst du nach einer Datei in einem Verzeichnis suchen.</p>
<p>Zwei Links, die du scheinbar nicht kennst, die dir aber generell weiterhelfen könnten:<br />
<a href="http://msdn2.microsoft.com/en-us/library/default.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/default.aspx</a><br />
<a href="http://www.google.de" rel="nofollow">http://www.google.de</a></p>
<p>gruß<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1341337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1341337</guid><dc:creator><![CDATA[mad_martin]]></dc:creator><pubDate>Thu, 09 Aug 2007 09:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 16:36:19 GMT]]></title><description><![CDATA[<blockquote>
<p><a href="http://msdn2.microsoft.com/en-US/library/aa365527.aspx" rel="nofollow">http://msdn2.microsoft.com/en-US/library/aa365527.aspx</a></p>
</blockquote>
<p>Ach du kacke!<br />
was soll ich mit dem lpFilePart machen? und wie suche ich mehrere Dateien. der gibt ja immer nur eine aus.<br />
könntet ihr mir bitte ein Beispiel geben?<br />
und wenn ich nur dateien suchen möchte, die eine bestimmte endung haben , was mache ich dann? setze ich den lpFileName auf NULL?<br />
thx1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342327</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342327</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Fri, 10 Aug 2007 16:36:19 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 18:27:46 GMT]]></title><description><![CDATA[<p>habt ihr ein beispiel dazu?<br />
bidde... ich find bei google nix.</p>
<p>// Also dass geht net:</p>
<pre><code class="language-cpp">LPCSTR lpPath = &quot;C:\\&quot;;
	LPCSTR lpFileName = &quot;boot&quot;;
	LPCSTR lpExtension = NULL;

	LPSTR lpBuffer;
	LPSTR lpFilePart;

	SearchPath(lpPath,lpFileName,lpExtension,MAX_PATH+1,lpBuffer,&amp;lpFilePart);

	MessageBox(NULL,lpBuffer,&quot;title&quot;,MB_OK);
</code></pre>
<p>warum?<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342369</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Fri, 10 Aug 2007 18:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 18:42:52 GMT]]></title><description><![CDATA[<p>weil Du entweder die Extension mit &quot;.ini&quot; angeben musst, oder Du setzt<br />
den Filenamen auf &quot;boot.ini&quot;.<br />
Oder existiert bei Dir eine Datei die einfach nur &quot;boot&quot; heiss`???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342393</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342393</guid><dc:creator><![CDATA[meep]]></dc:creator><pubDate>Fri, 10 Aug 2007 18:42:52 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 18:48:19 GMT]]></title><description><![CDATA[<p>nee, die existiert nicht.</p>
<p>aber angenommen ich habe lpSearch, der suchstring.<br />
dann eine While, die so lange aufgerufen wird, wie viele dateien halt gefunden wurden. dann kann ich das auswerten und auf dem Monitor darstellen.<br />
wie mache ich das?<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342395</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Fri, 10 Aug 2007 18:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 19:12:22 GMT]]></title><description><![CDATA[<p>in der Console entweder mit</p>
<pre><code>printf
</code></pre>
<p>[ C ] oder</p>
<pre><code>cout
</code></pre>
<p>[C++ ]<br />
oder in einer GUI schickste das ganze gefundene Zeugs per</p>
<pre><code>SendMessage
</code></pre>
<p>an ne Editbox<br />
Oder willst du sowas haben wie in der Windows Suche?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342402</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Fri, 10 Aug 2007 19:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Fri, 10 Aug 2007 19:19:10 GMT]]></title><description><![CDATA[<p>thx... das weiß ich schon.<br />
aber wie kann ich suchen?<br />
daten präsentieren .. ok<br />
suchen ..<br />
ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342404</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Fri, 10 Aug 2007 19:19:10 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 17:58:04 GMT]]></title><description><![CDATA[<p>Leute?<br />
wie geht das nun mit einem Suchstring und Pfad??<br />
aber ich möchte mehrere Dateien finden können...<br />
thx!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342869</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Sat, 11 Aug 2007 17:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 20:23:38 GMT]]></title><description><![CDATA[<p><em>FindNextFile</em>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342938</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sat, 11 Aug 2007 20:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 21:09:23 GMT]]></title><description><![CDATA[<p>Wieso FindNextFile???<br />
der sucht doch nur in einem Ordner, und nicht im Unterordner.<br />
oder soll ich ein Algorythmus schreiben, der dann ordner für ordner aufklappt und sucht???<br />
und das dauert und dauert...<br />
thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342947</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Sat, 11 Aug 2007 21:09:23 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 21:18:06 GMT]]></title><description><![CDATA[<p>was dauert und dauert? den Algorithmus schreiben oder das Suchen?</p>
<p>Nur so als Randbemerkung:<br />
Dieses Forum ist nicht dazu da dir deine Programme/Algorithmen zu schreiben bzw. für dich nach ihnen zu googlen oder die MSDN zu durchwühlen!<br />
Bei Problemen und Fragen wird gerne geholfen, aber ausnutzen lassen will sich hier keiner.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342952</guid><dc:creator><![CDATA[Checker*amp*Murckser]]></dc:creator><pubDate>Sat, 11 Aug 2007 21:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 21:22:14 GMT]]></title><description><![CDATA[<p>Wenn Du endlich mal Dein (nicht vorhandenes?) Gehirn aktivieren <strong>würdest</strong>, um beispielsweise auch mal die Suchfunktion dieses Forums zu bemühen, <strong>wärst</strong> Du vllt. auf das gestoßen: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-168044-and-highlight-is-%2Arekursiv%2A.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-168044-and-highlight-is-*rekursiv*.html</a> (wie man sieht: alles Konjunktiv... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> ). Ich finde Dein Verhalten irgendwie etwas dreißt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342953</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 11 Aug 2007 21:22:14 GMT</pubDate></item><item><title><![CDATA[Reply to Festplatte durchsuchen on Sat, 11 Aug 2007 21:39:38 GMT]]></title><description><![CDATA[<p>naja, dass kann ich schon verstehen.<br />
aber ich habe gesucht. vielleicht such ich ja falsch, aber dennoch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342961</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Sat, 11 Aug 2007 21:39:38 GMT</pubDate></item></channel></rss>