<?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[Datei Attribut zuweisen]]></title><description><![CDATA[<p>Hallo,<br />
meine Frage lautet, wie kann ich einer Datei Attribute zuweisen.<br />
z.B.: Wenn man unter Windows eine Datei per rechtsklick der Maus anwählt, und im Kontextmenü den Eintrag Eigenschaften wählt, kann man unter dem Reiter Allgemein, die AttributOption Versteck wählen.<br />
Ich möchte nun wissen, wie man einer bereits bestehenden Datei ein solches Attribut zuweisen könnte, per C++ versteht sich.</p>
<p>Hoffe das das so möglich ist, und auch das mir vllt jemand dabei helfen könnte.</p>
<p>MfG Die Eule</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178843/datei-attribut-zuweisen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 06:58:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178843.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Apr 2007 18:22:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:22:58 GMT]]></title><description><![CDATA[<p>Hallo,<br />
meine Frage lautet, wie kann ich einer Datei Attribute zuweisen.<br />
z.B.: Wenn man unter Windows eine Datei per rechtsklick der Maus anwählt, und im Kontextmenü den Eintrag Eigenschaften wählt, kann man unter dem Reiter Allgemein, die AttributOption Versteck wählen.<br />
Ich möchte nun wissen, wie man einer bereits bestehenden Datei ein solches Attribut zuweisen könnte, per C++ versteht sich.</p>
<p>Hoffe das das so möglich ist, und auch das mir vllt jemand dabei helfen könnte.</p>
<p>MfG Die Eule</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266677</guid><dc:creator><![CDATA[Die Eule]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:25:26 GMT]]></title><description><![CDATA[<p>WinAPI-spezifisch. SetFileAttribute() schätzungsweise.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266680</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:25:53 GMT]]></title><description><![CDATA[<p>PS.: Es wäre auch nicht weiter schlimm, wenn die Attributzuweisung innerhalb/während der Datei-Erstellung geschehen müsste.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266681</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266681</guid><dc:creator><![CDATA[Die Eule]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:36:56 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<p>WinAPI-spezifisch. SetFileAttribute() schätzungsweise.</p>
<p>MfG SideWinder</p>
</blockquote>
<p>Danke, wed mich da mal schlau machen.</p>
<p>MfG Die Eule</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266684</guid><dc:creator><![CDATA[Die Eule]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:57:25 GMT]]></title><description><![CDATA[<p>Andere evtl. einfachere Möglichkeit:</p>
<pre><code class="language-cpp">#include &quot;process.h&quot;

strcpy (verstecken, &quot;attrib +h&quot;);
strcat (verstecken, &quot; C:test.txt&quot;);
system (verstecken);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1266697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266697</guid><dc:creator><![CDATA[Die Eule]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:57:25 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 18:59:20 GMT]]></title><description><![CDATA[<p>Nein, das ist Mist, da system() Mist ist. Siehe auch hier in anderem Zusammenhang: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html</a></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266703</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sun, 15 Apr 2007 18:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Sun, 15 Apr 2007 19:49:36 GMT]]></title><description><![CDATA[<p>SideWinder schrieb:</p>
<blockquote>
<p>Nein, das ist Mist, da system() Mist ist. Siehe auch hier in anderem Zusammenhang: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html</a></p>
<p>MfG SideWinder</p>
</blockquote>
<p>Das ist eher Mist, weil 'strcpy' und 'strcat' Mist sind ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266750</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Sun, 15 Apr 2007 19:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Mon, 16 Apr 2007 07:47:36 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266914</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 16 Apr 2007 07:47:36 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Mon, 16 Apr 2007 07:59:20 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>SideWinder schrieb:</p>
<blockquote>
<p>Nein, das ist Mist, da system() Mist ist. Siehe auch hier in anderem Zusammenhang: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-178828.html</a></p>
<p>MfG SideWinder</p>
</blockquote>
<p>Das ist eher Mist, weil 'strcpy' und 'strcat' Mist sind ...</p>
</blockquote>
<p>Nein!<br />
1. Es ist Quatsch für das setzen eines Attributes einen neuen Prozess zu bemühen wenn es dafür eine API-Funktion gibt. Einfach Overkill.<br />
2. Das Geflacker und die Performance sind einfach lahm.<br />
3. Man bekommt keinen Fehlerresponse.<br />
4. Es funktioniert nur wenn ATTRIB von der SHell verstanden wird. Wird eine andere CMD Shell verwendet funktioniert es nicht.</p>
<p>Summa Summarum: system zu verwenden ist Quatsch. Es gibt keinen Grund für irgendwas system zu verwenden außer es gibt wirklich keine API Funktion zu diesem Programm.<br />
Und grundsätzlich kann man sagen: Alles was man von der CMD Shell an Windows und Dateioperationen ausführen kann, kann man auch mit der API!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1266927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1266927</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 16 Apr 2007 07:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Datei Attribut zuweisen on Mon, 16 Apr 2007 10:19:46 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>SideWinder schrieb:</p>
<blockquote>
<p>Nein, das ist Mist, da system() Mist ist.</p>
</blockquote>
<p>Das ist eher Mist, weil 'strcpy' und 'strcat' Mist sind ...</p>
</blockquote>
<p>Nein!</p>
</blockquote>
<p>Ups, ich wollte natürlich nicht die Verwendung von 'system' verteidigen. Klar ist das aus technischer Sicht &quot;Quatsch&quot;. Von daher: Keine Diskussion.</p>
<p>Ich finde nur, 'strcpy' und 'strcat' springen in einem C++-Forum als rotes Warnsignal ins Auge. Das blinkt so hell, dass es schon auf der Netzhaut wehtut. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1267019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1267019</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Mon, 16 Apr 2007 10:19:46 GMT</pubDate></item></channel></rss>