<?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[Wei mehrere Paramter als ein ganzen String speichern?]]></title><description><![CDATA[<p>Hallo, ich möchte in der Konsole folgendes eingeben:</p>
<pre><code>cd &quot;c:\dokumente und einstellungen&quot;
</code></pre>
<p>Der erste Parameter ist der Befehl <strong>cd</strong> wie bekomme ich nun die restlichen Parameter in &quot;&quot; als ein ganzen String gespeichert? Ich würde nach dem ersten &quot; und dem letzten &quot; suchen und dann alles speichern.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206534/wei-mehrere-paramter-als-ein-ganzen-string-speichern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 11:02:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206534.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Feb 2008 09:04:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 09:04:22 GMT]]></title><description><![CDATA[<p>Hallo, ich möchte in der Konsole folgendes eingeben:</p>
<pre><code>cd &quot;c:\dokumente und einstellungen&quot;
</code></pre>
<p>Der erste Parameter ist der Befehl <strong>cd</strong> wie bekomme ich nun die restlichen Parameter in &quot;&quot; als ein ganzen String gespeichert? Ich würde nach dem ersten &quot; und dem letzten &quot; suchen und dann alles speichern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463020</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Tue, 26 Feb 2008 09:04:22 GMT</pubDate></item><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 09:14:26 GMT]]></title><description><![CDATA[<p>Das sollte das Betriebssystem schon von sich aus in das zweite Argument packen und die Anführungszeichen entfehrnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463026</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 26 Feb 2008 09:14:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 09:46:01 GMT]]></title><description><![CDATA[<p>Habe sowas gebastelt, was meint ihr dazu:</p>
<pre><code class="language-cpp">if(command[0] == '&quot;' &amp;&amp; command.rfind('&quot;'))
			{
				//suche das '&quot;' Zeichen von hinten
				int i = command.rfind('&quot;');

				//erstellt ein string zwischen den Zeichen '&quot;'
				string app = command.substr(0, i+1);
				//erstellt ein string hinter dem letzten Zeichen '&quot;'
				string para = command.substr(i+1, command.length()-1);

				//Befehl + Parameter			
				string buildApp = app + para;				

				//Ausführen
				ExecCommand(buildApp);
				cout &lt;&lt; endl;
			}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1463043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463043</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Tue, 26 Feb 2008 09:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 10:17:06 GMT]]></title><description><![CDATA[<p>Dann hast ein Problem wenn mehrere &quot; drin vorkommen. Oder ein escaptes &quot; (\&quot;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463062</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Tue, 26 Feb 2008 10:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 10:24:09 GMT]]></title><description><![CDATA[<p>Wie könnte man das besser realisieren ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463069</guid><dc:creator><![CDATA[kernel64]]></dc:creator><pubDate>Tue, 26 Feb 2008 10:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to Wei mehrere Paramter als ein ganzen String speichern? on Tue, 26 Feb 2008 10:26:00 GMT]]></title><description><![CDATA[<p>Auftrennen des Strings an jeder Stelle an der ein &quot; auftaucht. Jeweils darauf achten das kein \ davorsteht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463071</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Tue, 26 Feb 2008 10:26:00 GMT</pubDate></item></channel></rss>