<?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[Windows Datei Attribute]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>wie man die Datei Attribute ausliest weiß ich, nur habe ich nun das Problem, dass ich keine Dokumentation finde, die mir sagen kann, was die ausgegebenen Zahlen nun bedeuten. Z.B. bekomme ich bei einer Datei die Zahl &quot;32&quot;, &quot;33&quot; usw. raus.</p>
<p>Da gibt es doch bestimmt ne Doku. zu oder nicht? Finde sie aber bei <a href="http://google.de" rel="nofollow">google.de</a> nicht.</p>
<p>Wäre nett wenn mir einer einen Link oder ähnliches geben könnte.</p>
<p>Gruß<br />
Thorsten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/119498/windows-datei-attribute</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 00:21:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119498.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Sep 2005 14:37:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 14:37:22 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>wie man die Datei Attribute ausliest weiß ich, nur habe ich nun das Problem, dass ich keine Dokumentation finde, die mir sagen kann, was die ausgegebenen Zahlen nun bedeuten. Z.B. bekomme ich bei einer Datei die Zahl &quot;32&quot;, &quot;33&quot; usw. raus.</p>
<p>Da gibt es doch bestimmt ne Doku. zu oder nicht? Finde sie aber bei <a href="http://google.de" rel="nofollow">google.de</a> nicht.</p>
<p>Wäre nett wenn mir einer einen Link oder ähnliches geben könnte.</p>
<p>Gruß<br />
Thorsten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862869</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Thu, 01 Sep 2005 14:37:22 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 14:41:59 GMT]]></title><description><![CDATA[<p>du musst die bits testen</p>
<pre><code class="language-cpp">if(dw &amp; FILE_ATTRIBUTE_READONLY)) 
 // datei ist schreibgeschützt
</code></pre>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfileattributes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfileattributes.asp</a><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/retrieving_and_changing_file_attributes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/retrieving_and_changing_file_attributes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/862872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862872</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 01 Sep 2005 14:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 14:47:54 GMT]]></title><description><![CDATA[<p>hmm, die Links könnten mich evtl. weiter bringen, nur gibt es nirgends eine Übersicht wo z.B steht:</p>
<p>31=normale Datei<br />
32=Schreibgeschützte Datei.</p>
<p>Muss es doch bestimmt irgendwo geben, wenn man so die Zahlen von _WIN32_FIND_DATA ausgegeben bekommt oder nicht?</p>
<p>trotzdem danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862882</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Thu, 01 Sep 2005 14:47:54 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 15:23:08 GMT]]></title><description><![CDATA[<p>wenn ich nun den Wert vergleiche</p>
<pre><code>if(at &amp; FILE_ATTRIBUTE_HIDDEN)
     {
       Edit1-&gt;Text=&quot;Versteckt&quot;;
     }
     else
     {
       Edit1-&gt;Text=&quot;nicht Versteckt&quot;;
     }
</code></pre>
<p>habe ich nun das Problem, dass dann immer &quot;Versteckt&quot; dabei raus kommt, egal ob ich die datei nun vesteckt habe oder nicht.</p>
<p>einlesen mache ich ja so vohrer</p>
<p>(ausschnitt)</p>
<pre><code>DWORD at;

at=GetFileAttributes(DateiPfad.c_str());
</code></pre>
<p>vielen dank schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862921</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Thu, 01 Sep 2005 15:23:08 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 15:26:00 GMT]]></title><description><![CDATA[<p>da wird es nirgendwo eine Beschreibung geben, da die Zahlenwerte aus zusammengesetzten Bits bestehen. Z.B. kriegst du 5 zurück (00000101), dann ist Bit 1 gesetzt und Bit 3 gesetzt.</p>
<pre><code>MAPIWIN.H
#define FILE_ATTRIBUTE_READONLY         0x00000001
#define FILE_ATTRIBUTE_HIDDEN           0x00000002
#define FILE_ATTRIBUTE_SYSTEM           0x00000004
#define FILE_ATTRIBUTE_DIRECTORY        0x00000010
#define FILE_ATTRIBUTE_ARCHIVE          0x00000020
#define FILE_ATTRIBUTE_NORMAL           0x00000080
#define FILE_ATTRIBUTE_TEMPORARY        0x00000100
</code></pre>
<p>Bit 1 = 0x00000001<br />
Bit 3 = 0x00000004<br />
also ein Readonly + Systemfile</p>
<p>PS: such mal mit VC++ (Find in Files) unter<br />
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE<br />
nach solchen defines, vielleicht hilft dir das was.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862927</guid><dc:creator><![CDATA[electron_1]]></dc:creator><pubDate>Thu, 01 Sep 2005 15:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to Windows Datei Attribute on Thu, 01 Sep 2005 15:37:10 GMT]]></title><description><![CDATA[<p>ja, ich weiß jetzt im moment gar nicht, ob ich die attribut werte mit getfileattributes ausgeben lassen soll oder mit hilfe des</p>
<pre><code>TSearchRec db

db.FindData.dwFileAttributes
</code></pre>
<p>und dann die Werte vergleiche.<br />
Nur da das dwFileAttributes von typ unsigned long ist, bekomme ich nur zahlen wie z.b. 35 raus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862943</guid><dc:creator><![CDATA[ThorstenSteinberg]]></dc:creator><pubDate>Thu, 01 Sep 2005 15:37:10 GMT</pubDate></item></channel></rss>