<?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[Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!!]]></title><description><![CDATA[<p>Warum kann man bei ShellExecute keine Parameter setzen??</p>
<p>Beispiel<br />
m_edit1 bis 4 sind Parameter von netsh</p>
<pre><code class="language-cpp">// Falsch
ShellExecute (NULL, 
&quot;open&quot;, 
&quot;netsh  -c interface ip set address&quot;/*+m_edit1+&quot; &quot;+m_edit2+&quot; &quot;+m_edit3+&quot; &quot;+m_edit4*/, 
NULL, 
NULL, 
SW_SHOWNORMAL);

//Richtig

ShellExecute (NULL, 
&quot;open&quot;, 
&quot;netsh&quot;, 
NULL, 
NULL, 
SW_SHOWNORMAL);
</code></pre>
<p>Ohne Parameter ist die Komandozeile jedoch sinnlos. Was kann ich machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158643/befehle-ohne-leerzeichen-parameter-lt-unbeantwortet</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Jul 2026 18:22:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158643.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Sep 2006 09:37:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!! on Thu, 07 Sep 2006 10:29:03 GMT]]></title><description><![CDATA[<p>Warum kann man bei ShellExecute keine Parameter setzen??</p>
<p>Beispiel<br />
m_edit1 bis 4 sind Parameter von netsh</p>
<pre><code class="language-cpp">// Falsch
ShellExecute (NULL, 
&quot;open&quot;, 
&quot;netsh  -c interface ip set address&quot;/*+m_edit1+&quot; &quot;+m_edit2+&quot; &quot;+m_edit3+&quot; &quot;+m_edit4*/, 
NULL, 
NULL, 
SW_SHOWNORMAL);

//Richtig

ShellExecute (NULL, 
&quot;open&quot;, 
&quot;netsh&quot;, 
NULL, 
NULL, 
SW_SHOWNORMAL);
</code></pre>
<p>Ohne Parameter ist die Komandozeile jedoch sinnlos. Was kann ich machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1132825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1132825</guid><dc:creator><![CDATA[digi333]]></dc:creator><pubDate>Thu, 07 Sep 2006 10:29:03 GMT</pubDate></item><item><title><![CDATA[Reply to Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!! on Thu, 07 Sep 2006 09:45:07 GMT]]></title><description><![CDATA[<p>Versuch mal:</p>
<pre><code class="language-cpp">ShellExecute (NULL, 
&quot;open&quot;, 
&quot;netsh&quot;, 
&quot;meine lustigen parameter hier rein&quot;, 
NULL, 
SW_SHOWNORMAL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1132832</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1132832</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Thu, 07 Sep 2006 09:45:07 GMT</pubDate></item><item><title><![CDATA[Reply to Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!! on Thu, 07 Sep 2006 10:05:02 GMT]]></title><description><![CDATA[<p>Du hast recht. Die Variblen mag er aber trotzdem nicht.</p>
<pre><code class="language-cpp">ShellExecute (NULL, &quot;open&quot;, &quot;netsh.exe&quot;,m_edit1+&quot; &quot;+m_edit2/*+&quot; &quot;+m_edit3+&quot; &quot;+m_edit4, NULL, SW_SHOWNORMAL);
</code></pre>
<p>Nebenbei erwähnt sind die Variablen alles CString. Vielleicht ist das ein Problem?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1132852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1132852</guid><dc:creator><![CDATA[digi333]]></dc:creator><pubDate>Thu, 07 Sep 2006 10:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!! on Thu, 07 Sep 2006 10:15:51 GMT]]></title><description><![CDATA[<p>Vielleicht solltest Du dir das Ergebnis Deiner Verkettung angucken.<br />
Weiß nicht, was da drin steht oder ob Du die Parameter richtig verwendest.<br />
Dies hier läuft bei mir Problemlos:</p>
<pre><code class="language-cpp">CString sDrive = &quot;C:\\&quot;;
CString sFile  = &quot;test.txt&quot;;
ShellExecute( NULL, &quot;open&quot;, &quot;notepad.exe&quot;, sDrive + sFile, NULL, SW_SHOWNORMAL );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1132857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1132857</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Thu, 07 Sep 2006 10:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to Befehle ohne Leerzeichen (Parameter)??? &amp;lt;= unbeantwortet!!! on Thu, 07 Sep 2006 10:29:42 GMT]]></title><description><![CDATA[<p>Dummheitsfehler zuvor.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1132864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1132864</guid><dc:creator><![CDATA[digi333]]></dc:creator><pubDate>Thu, 07 Sep 2006 10:29:42 GMT</pubDate></item></channel></rss>