<?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 ruft man eine Batch-datei aus MFC Anwendung auf??]]></title><description><![CDATA[<p>hi,</p>
<p>kann mia jemand sagen wie man eine Batch-Datei aus einer MFC Anwendung heraus aufrufen kann?</p>
<p>(WinExec akzeptiert leider nur exe-files)</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76279/wie-ruft-man-eine-batch-datei-aus-mfc-anwendung-auf</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 00:07:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76279.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jun 2004 14:07:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 14:07:27 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>kann mia jemand sagen wie man eine Batch-Datei aus einer MFC Anwendung heraus aufrufen kann?</p>
<p>(WinExec akzeptiert leider nur exe-files)</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536820</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Wed, 09 Jun 2004 14:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 14:24:59 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>ShellExecute() sollte das machen. -&gt; MSDN gucken <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536825</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Wed, 09 Jun 2004 14:24:59 GMT</pubDate></item><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 15:01:20 GMT]]></title><description><![CDATA[<p>danke fuer den tipp, nur eine frage noch zu shellexecute:</p>
<p>ich glaube das ding laueft als eigener prozess. Mein problem ist, dass ich nach aufruf von shellexecute(&quot;program&quot;) einen funktionaufruf habe, der ein bestimmte datei, die von &quot;program&quot; erzeugt wird, benoetigt.<br />
z.B:</p>
<pre><code>...
ShellExecute(...Bla...);
foo();
...
</code></pre>
<p>bei aufruf von foo() ist die datei die durch das programm erstellt wird, noch nicht vorhanden.</p>
<p>was kann ich da machen ?<br />
danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/536857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536857</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Wed, 09 Jun 2004 15:01:20 GMT</pubDate></item><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 17:53:42 GMT]]></title><description><![CDATA[<p>Arbeite doch einfach mit Sleep();</p>
<pre><code>... 
ShellExecute(...Bla...); 
Sleep(3000); // 3 sec. warten, in der Zeit wird die Batch erstellt...
foo(); 
...
</code></pre>
<p>Ist zwar net das beste, aber naja... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/536995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/536995</guid><dc:creator><![CDATA[:::]]></dc:creator><pubDate>Wed, 09 Jun 2004 17:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 18:31:18 GMT]]></title><description><![CDATA[<p>du kannst mit waitforsingleobject arbeiten:</p>
<pre><code class="language-cpp">SHELLEXECUTEINFO sei;
	ZeroMemory( &amp;sei, sizeof( sei ) );
	sei.cbSize       = sizeof( sei );
	sei.fMask        = SEE_MASK_NOCLOSEPROCESS;
	sei.lpFile       = exe;
	sei.lpParameters = parameters;
	sei.lpDirectory  = dir;
	sei.nShow        = SW_SHOW;

	ShellExecuteEx( &amp;sei );
	if ( sei.hProcess )
	{
                // warte bis der prozess beendet wurde....
		WaitForSingleObject( sei.hProcess, INFINITE );
		CloseHandle( sei.hProcess );
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/537021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537021</guid><dc:creator><![CDATA[entelechie]]></dc:creator><pubDate>Wed, 09 Jun 2004 18:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to Wie ruft man eine Batch-datei aus MFC Anwendung auf?? on Wed, 09 Jun 2004 20:15:16 GMT]]></title><description><![CDATA[<p>Das ist natürlich eine bessere Methode, aber wenn du dir nicht viel Mühe machen möchtest, wäre Sleep() besser ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/537086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/537086</guid><dc:creator><![CDATA[:::]]></dc:creator><pubDate>Wed, 09 Jun 2004 20:15:16 GMT</pubDate></item></channel></rss>