<?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[ShellExecute mehrere Befehle (MySql-Monitor)]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich habe hier schon gesucht, aber keine wirkliche Lösung gefunden.<br />
Ich möchte per ShellExecute meinen MySql-Monitor auf der Konsole mit mehreren Befehlen abfragen.<br />
Zuerst öffne ich eine Batch Datei, die startet MySql</p>
<pre><code class="language-cpp">ShellExecute(this, &quot;open&quot;, &quot;mysql_start.bat&quot;, NULL, &quot;c:\\wampp13cs&quot;, SW_SHOWNORMAL);
</code></pre>
<p>Danach öffne ich cmd.exe</p>
<pre><code class="language-cpp">ShellExecute(this, &quot;open&quot;, &quot;cmd.exe&quot;, &quot; /k mysql\\bin\\mysql /k use myDB; /k show tables; /k &gt;file.txt&quot;, &quot;c:\\wampp13cs&quot;, SW_SHOWDEFAULT);
</code></pre>
<p>und speicher den Konsolen-Output in die Datei file.txt.</p>
<p>Das Problem ist, dass der zweite ShellExecute nicht über den Befehl &quot;mysql\\bin\\mysql&quot; hinauskommt.<br />
Wie kann ich mit einem ShellExecute mehrere Zeilen(Befehle) in die Konsole eingeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/108748/shellexecute-mehrere-befehle-mysql-monitor</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 06:40:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/108748.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 May 2005 19:27:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 19:27:58 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich habe hier schon gesucht, aber keine wirkliche Lösung gefunden.<br />
Ich möchte per ShellExecute meinen MySql-Monitor auf der Konsole mit mehreren Befehlen abfragen.<br />
Zuerst öffne ich eine Batch Datei, die startet MySql</p>
<pre><code class="language-cpp">ShellExecute(this, &quot;open&quot;, &quot;mysql_start.bat&quot;, NULL, &quot;c:\\wampp13cs&quot;, SW_SHOWNORMAL);
</code></pre>
<p>Danach öffne ich cmd.exe</p>
<pre><code class="language-cpp">ShellExecute(this, &quot;open&quot;, &quot;cmd.exe&quot;, &quot; /k mysql\\bin\\mysql /k use myDB; /k show tables; /k &gt;file.txt&quot;, &quot;c:\\wampp13cs&quot;, SW_SHOWDEFAULT);
</code></pre>
<p>und speicher den Konsolen-Output in die Datei file.txt.</p>
<p>Das Problem ist, dass der zweite ShellExecute nicht über den Befehl &quot;mysql\\bin\\mysql&quot; hinauskommt.<br />
Wie kann ich mit einem ShellExecute mehrere Zeilen(Befehle) in die Konsole eingeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780459</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Mon, 02 May 2005 19:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 19:34:37 GMT]]></title><description><![CDATA[<p>Ich versteh das Problem nicht. Ein zweiter Befehl, wäre doch gleichzusetzen mit mehren ShellExecute(). Ich würde aber alles in eine .bat Datei schreiben und die dann ausführen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780468</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Mon, 02 May 2005 19:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 19:43:38 GMT]]></title><description><![CDATA[<p>Möglicher Weise bin ich im falschem Forum.<br />
Ich habe auch mit einer Bat Datei schwierigkeiten</p>
<pre><code>ECHO OFF
echo.
echo Monitor
ECHO ON
c:\wampp13cs\mysql\bin\mysql
show databases;
</code></pre>
<p>bringt mich auch nur bis zum mysql-Monitor aufruf.<br />
Danach kriege ich nichts mehr in die Konsole geschrieben, also show databases; funktioniert nicht mehr</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780480</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Mon, 02 May 2005 19:43:38 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 20:22:54 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>versuch mal statt ShellExecute ein <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp" rel="nofollow">CreateProcess</a>.</p>
<p>MfG</p>
<p>Anakin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780522</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780522</guid><dc:creator><![CDATA[Anakin Skywalker]]></dc:creator><pubDate>Mon, 02 May 2005 20:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 20:41:51 GMT]]></title><description><![CDATA[<p>kann es sein das mysql irgendeine interaktive shell öffnet?</p>
<p>Dann kann es solche Probleme geben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780542</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Mon, 02 May 2005 20:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute mehrere Befehle (MySql-Monitor) on Mon, 02 May 2005 20:49:23 GMT]]></title><description><![CDATA[<p>flammenvogel schrieb:</p>
<blockquote>
<p>kann es sein das mysql irgendeine interaktive shell öffnet?</p>
<p>Dann kann es solche Probleme geben...</p>
</blockquote>
<p>Das wird es sein. Gibt es da keine Möglichkeiten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/780548</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/780548</guid><dc:creator><![CDATA[Trulli]]></dc:creator><pubDate>Mon, 02 May 2005 20:49:23 GMT</pubDate></item></channel></rss>