<?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[Anwendung ausführen und beenden aus C++]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte ein einfaches C++ Programm schreiben, das ein (beliebiges) anderes Windows Programm beendet sofern dies läuft und dann wieder neu startet. Der Ablauf wäre dann in etwa der folgende:</p>
<p>- Mein Programm bekommt beim Start als Parameter den Pfad der zu startenden Anwendung übergeben, also z.B. sowas: C:\Anwendung\anwendung.exe<br />
- Es wird geprüft ob die Anwendung im Moment ausgeführt wird, WENN JA wird die Anwendung beendet und neu gestartet</p>
<p>Mein Problem dabei, wie prüfe ich in C++ ob die Anwendung bereits läuft und wie beende ich sie dann und starte sie neu?</p>
<p>Gruß</p>
<p>mtp</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123682/anwendung-ausführen-und-beenden-aus-c</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Jul 2026 23:55:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123682.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Oct 2005 07:09:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anwendung ausführen und beenden aus C++ on Wed, 19 Oct 2005 07:09:37 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte ein einfaches C++ Programm schreiben, das ein (beliebiges) anderes Windows Programm beendet sofern dies läuft und dann wieder neu startet. Der Ablauf wäre dann in etwa der folgende:</p>
<p>- Mein Programm bekommt beim Start als Parameter den Pfad der zu startenden Anwendung übergeben, also z.B. sowas: C:\Anwendung\anwendung.exe<br />
- Es wird geprüft ob die Anwendung im Moment ausgeführt wird, WENN JA wird die Anwendung beendet und neu gestartet</p>
<p>Mein Problem dabei, wie prüfe ich in C++ ob die Anwendung bereits läuft und wie beende ich sie dann und starte sie neu?</p>
<p>Gruß</p>
<p>mtp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895800</guid><dc:creator><![CDATA[mtp]]></dc:creator><pubDate>Wed, 19 Oct 2005 07:09:37 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung ausführen und beenden aus C++ on Wed, 19 Oct 2005 07:31:09 GMT]]></title><description><![CDATA[<p>1.) falsches forum -&gt; winapi</p>
<p>2.) da du scheinbarunter windows arbeitest schau dir mal in der msdn FindWindow an, da kannst du nach dem TItel suchen, bekommst ein handle zurück, kannst das ding dann killen usw.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895831</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895831</guid><dc:creator><![CDATA[moep]]></dc:creator><pubDate>Wed, 19 Oct 2005 07:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung ausführen und beenden aus C++ on Wed, 19 Oct 2005 08:06:51 GMT]]></title><description><![CDATA[<p>moep schrieb:</p>
<blockquote>
<p>1.) falsches forum -&gt; winapi</p>
<p>2.) da du scheinbarunter windows arbeitest schau dir mal in der msdn FindWindow an, da kannst du nach dem TItel suchen, bekommst ein handle zurück, kannst das ding dann killen usw.</p>
</blockquote>
<p>1. sorry.</p>
<p>2. danke.</p>
<p>mtp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/895859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/895859</guid><dc:creator><![CDATA[mtp]]></dc:creator><pubDate>Wed, 19 Oct 2005 08:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung ausführen und beenden aus C++ on Wed, 19 Oct 2005 12:00:40 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">kingruedi</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/896022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896022</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 19 Oct 2005 12:00:40 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung ausführen und beenden aus C++ on Wed, 19 Oct 2005 12:11:07 GMT]]></title><description><![CDATA[<p>ich würde die prozesse iterieren und mit dem exe namen vergleichen und dann killen<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/taking_a_snapshot_and_viewing_processes.asp</a><br />
<a href="http://msdn.microsoft.com/library/en-us/dllproc/base/terminateprocess.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/dllproc/base/terminateprocess.asp</a></p>
<p>[edit]<br />
gerade gelesen das du diese wieder starten möchtest<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp</a><br />
oder<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocess.asp</a><br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/896025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/896025</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 19 Oct 2005 12:11:07 GMT</pubDate></item></channel></rss>