<?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[wie kann man zwei system() Befehle ausführen ?]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann man zwei system() Befehle ausführen ?</p>
<p>Beispiel:<br />
system(&quot;cd windows&quot;);<br />
system(&quot;dir &gt; C:\\Test.txt&quot;);</p>
<p>Doch das funtzt oben nicht !!! Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/75337/wie-kann-man-zwei-system-befehle-ausführen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 12:03:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/75337.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 May 2004 13:36:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wie kann man zwei system() Befehle ausführen ? on Sun, 30 May 2004 13:36:36 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann man zwei system() Befehle ausführen ?</p>
<p>Beispiel:<br />
system(&quot;cd windows&quot;);<br />
system(&quot;dir &gt; C:\\Test.txt&quot;);</p>
<p>Doch das funtzt oben nicht !!! Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/529797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/529797</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sun, 30 May 2004 13:36:36 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann man zwei system() Befehle ausführen ? on Mon, 31 May 2004 04:24:52 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>probiere es so:</p>
<pre><code class="language-cpp">system(&quot;cd windows &amp;&amp; dir &gt; c:\\test.txt&quot;);
</code></pre>
<p>besser ist es natürlich, system nicht zu verwenden, und stattdessen die API-Funktion SetCurrentDirectory für den Verzeichnis-Wechsel zu benutzen:</p>
<p><a href="http://msdn.microsoft.com/library/en-us/fileio/base/setcurrentdirectory.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/fileio/base/setcurrentdirectory.asp</a></p>
<p>und dann alle Dateien aus diesem Verzeichnis Stück für Stück in eine Datei mit dem Namen c:\test.txt zu schreiben (auch für die anderen Infos wie Datum, Uhrzeit, Größe gibt es (API-)Funktionen oder MFC-Klassen).</p>
<p>auch wenn system so bequem ist, gutes Programmieren muß nicht bequem sein...</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/530066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/530066</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Mon, 31 May 2004 04:24:52 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann man zwei system() Befehle ausführen ? on Mon, 31 May 2004 12:31:39 GMT]]></title><description><![CDATA[<p>Stimmt, das könnte man ja mit CFileFind machen...Dankeee <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/530229</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/530229</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Mon, 31 May 2004 12:31:39 GMT</pubDate></item></channel></rss>