<?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[C++ Konsole: Befehl: system???]]></title><description><![CDATA[<p>Hallo<br />
ich hab mal versucht über eine Konsoleneingabe einen Ordner zu öffnen, aber sobald der Ordnername ein Leerzeichen hat, liest er den Ordner nicht weiter ein, genau das Problem habe ich jetzt bei meinem Beispiel:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{

system(&quot;start C:\Dokumente und Einstellungen&quot;);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
<p>Weiß jemand, wie ich das umgehen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123654/c-konsole-befehl-system</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 15:50:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123654.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Oct 2005 19:10:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:10:39 GMT]]></title><description><![CDATA[<p>Hallo<br />
ich hab mal versucht über eine Konsoleneingabe einen Ordner zu öffnen, aber sobald der Ordnername ein Leerzeichen hat, liest er den Ordner nicht weiter ein, genau das Problem habe ich jetzt bei meinem Beispiel:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{

system(&quot;start C:\Dokumente und Einstellungen&quot;);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
<p>Weiß jemand, wie ich das umgehen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895482</guid><dc:creator><![CDATA[mccrossen]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:14:00 GMT]]></title><description><![CDATA[<p>versuchs mal mit:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{

system(&quot;start C:\Dokumente_und_Einstellungen&quot;);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/895485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895485</guid><dc:creator><![CDATA[MartinMilbret]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:16:19 GMT]]></title><description><![CDATA[<p>So wie du es jetzt vorgeschlagen hast, hab ich es auch schon versucht, aber dann sagt er mir, das er das nicht finden kann, obwohl es den Ordner dorten gibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895488</guid><dc:creator><![CDATA[mccrossen]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:16:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:19:36 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das muß so aussehen :</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{
system(&quot;start &quot;C:\\Dokumente und Einstellungen\&quot;&quot;);
system(&quot;pause&quot;);
return 0;
}
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895493</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:19:36 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:19:54 GMT]]></title><description><![CDATA[<p>vielleicht hilft</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; 
using namespace std; 

int main() 
{ 
  system(&quot;start \&quot;C:\\Dokumente und Einstellungen\&quot;&quot;);
  system(&quot;pause&quot;); 
  return 0; 
}
</code></pre>
<p>befinden sich leerzeichen im argument, dann sollte man es in anführungszeichen setzten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895494</guid><dc:creator><![CDATA[Konfusius]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:24:46 GMT]]></title><description><![CDATA[<p>Dann startet der Computer aber den Ordner nicht, sondern die Eingabeauffoderung mit dem Verzeichnis des aktuellen Projektes(bei mir C:\Dev-cpp\Projekte\Projekt3)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895500</guid><dc:creator><![CDATA[mccrossen]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Tue, 18 Oct 2005 19:40:59 GMT]]></title><description><![CDATA[<p>Ich glaube du willst &quot;explorer C:\verzeichnis&quot;</p>
<p>Es wäre aber besser wenn man dazu ShellExceute (eine Funktion die Windows bereitstellt) verwendet.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895507</guid><dc:creator><![CDATA[FireFlow]]></dc:creator><pubDate>Tue, 18 Oct 2005 19:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Wed, 19 Oct 2005 00:02:44 GMT]]></title><description><![CDATA[<p>Es gibt unter Linux auch Escapezeichen für Leerzeichen.<br />
/home/blah/neuer\ Ordner/<br />
Bei Windows ist es glaub ich was anderes als \ was weiß ich aber nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895710</guid><dc:creator><![CDATA[imhotep]]></dc:creator><pubDate>Wed, 19 Oct 2005 00:02:44 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Wed, 19 Oct 2005 18:14:02 GMT]]></title><description><![CDATA[<p>@imohep: Ich arbeite aber mit Winows!</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9894">@FireFlow</a>: Könntest du mir mal zeigen, wie man das &quot;ShellExceute&quot; in den Quelltext einbindet?</p>
<p>Außerdem wollte ich ein Programm im C:\Dokumente und Einstellungen\... öffnen, das ging aber nicht, da das mit dem</p>
<pre><code class="language-cpp">system(&quot;start C:\Dokumente_und_Einstellungen&quot;);
</code></pre>
<p>nicht funktioniert hat, weil er bei den Leerzeichen nicht weiter ließt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896444</guid><dc:creator><![CDATA[mccrossen]]></dc:creator><pubDate>Wed, 19 Oct 2005 18:14:02 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Wed, 19 Oct 2005 18:20:37 GMT]]></title><description><![CDATA[<p>Wie wärs mit</p>
<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;C:\Dokumente und Einstellungen&quot;, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>Im Übrigen…<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/896449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896449</guid><dc:creator><![CDATA[M*]]></dc:creator><pubDate>Wed, 19 Oct 2005 18:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Wed, 19 Oct 2005 18:29:52 GMT]]></title><description><![CDATA[<p>Danke, es geht.<br />
Aber könnte mir einer den Syntax erklären?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/896452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896452</guid><dc:creator><![CDATA[mccrossen]]></dc:creator><pubDate>Wed, 19 Oct 2005 18:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Konsole: Befehl: system??? on Wed, 19 Oct 2005 20:44:33 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/896576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896576</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Wed, 19 Oct 2005 20:44:33 GMT</pubDate></item></channel></rss>