<?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[Programmaufruf mit Parameterübergabe]]></title><description><![CDATA[<p>Ich würde gerne wissen wie ich von einer C++ MFC Anwendung aus, Programme mit Parameterübergabe aufrufen kann. Als Beispiel währe der Aufruf einer einfachen Batch Datei sehr hilfreich.</p>
<pre><code>@ECHO OFF
ECHO.
COPY C:\OrdnerTest\%1.txt    C:\OrdnerTest\%2.txt
ECHO.
PAUSE
ECHO.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/58840/programmaufruf-mit-parameterübergabe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 02 Jun 2026 21:32:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/58840.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Dec 2003 15:20:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programmaufruf mit Parameterübergabe on Tue, 16 Dec 2003 15:20:11 GMT]]></title><description><![CDATA[<p>Ich würde gerne wissen wie ich von einer C++ MFC Anwendung aus, Programme mit Parameterübergabe aufrufen kann. Als Beispiel währe der Aufruf einer einfachen Batch Datei sehr hilfreich.</p>
<pre><code>@ECHO OFF
ECHO.
COPY C:\OrdnerTest\%1.txt    C:\OrdnerTest\%2.txt
ECHO.
PAUSE
ECHO.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/417598</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/417598</guid><dc:creator><![CDATA[Dol.Guldur]]></dc:creator><pubDate>Tue, 16 Dec 2003 15:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to Programmaufruf mit Parameterübergabe on Tue, 16 Dec 2003 15:25:32 GMT]]></title><description><![CDATA[<p>Servus,</p>
<pre><code class="language-cpp">HINSTANCE ShellExecute(          HWND hwnd,
    LPCTSTR lpOperation,
    LPCTSTR lpFile,
    LPCTSTR lpParameters,
    LPCTSTR lpDirectory,
    INT nShowCmd
);
</code></pre>
<blockquote>
<p>lpFile<br />
[in] Pointer to a null-terminated string that specifies the file or object on which to execute the specified verb. To specify a Shell namespace object, pass the fully qualified parse name. Note that not all verbs are supported on all objects. For example, not all document types support the &quot;print&quot; verb.</p>
<p><strong>lpParameters<br />
[in] If the lpFile parameter specifies an executable file, lpParameters is a pointer to a null-terminated string that specifies the parameters to be passed to the application. The format of this string is determined by the verb that is to be invoked. If lpFile specifies a document file, lpParameters should be NULL.</strong></p>
<p>lpDirectory<br />
[in] Pointer to a null-terminated string that specifies the default directory.</p>
</blockquote>
<p>lpParameters musste die Parameter eintragen. Wie Shellexecute geht ist in der MSDN beschrieben</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/417606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/417606</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Tue, 16 Dec 2003 15:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to Programmaufruf mit Parameterübergabe on Wed, 17 Dec 2003 08:30:55 GMT]]></title><description><![CDATA[<p>Danke Hellsgore, es hat super funktioniert!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/418037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/418037</guid><dc:creator><![CDATA[Dol.Guldur]]></dc:creator><pubDate>Wed, 17 Dec 2003 08:30:55 GMT</pubDate></item></channel></rss>