<?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[Explorer.exe neu starten. (system() und WinExec())]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>aus bestimmten Gründen muß ich ein Programm schreiben das die Icons im Startmenu und der Schnellstartleiste neu lädt. Ein praktikabler Weg ist denke ich den Windows Explorer abzuschießen und ihn dann neu zu starten. Momentan habe ich keine Install Rechte, deshalb kann ich nur den TCC Compiler verwenden. Ich habe also keine shellapi.h bzw ShellExecute().</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdlib.h&gt;

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {

	WinExec(&quot;taskkill.exe /f /im explorer.exe&quot;, SW_NORMAL); // Alten Explorer schließen.
	system(&quot;explorer.exe&quot;); // Neuen E starten
	WinExec(&quot;explorer.exe /e,C:\\&quot;, SW_NORMAL); // Nun den Datei Explorer mit C: anzeigen.
}
</code></pre>
<p>Warum hält mein Programm beim system() Aufruf an? Erst wenn ich die Dosbox schließe wird der normale Datei Explorer aufgerufen und das Programm beendet sich.</p>
<p>Vielen Dank</p>
<p>abcd</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/241563/explorer-exe-neu-starten-system-und-winexec</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 04:07:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/241563.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 May 2009 13:47:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Explorer.exe neu starten. (system() und WinExec()) on Fri, 22 May 2009 13:47:22 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>aus bestimmten Gründen muß ich ein Programm schreiben das die Icons im Startmenu und der Schnellstartleiste neu lädt. Ein praktikabler Weg ist denke ich den Windows Explorer abzuschießen und ihn dann neu zu starten. Momentan habe ich keine Install Rechte, deshalb kann ich nur den TCC Compiler verwenden. Ich habe also keine shellapi.h bzw ShellExecute().</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;stdlib.h&gt;

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) {

	WinExec(&quot;taskkill.exe /f /im explorer.exe&quot;, SW_NORMAL); // Alten Explorer schließen.
	system(&quot;explorer.exe&quot;); // Neuen E starten
	WinExec(&quot;explorer.exe /e,C:\\&quot;, SW_NORMAL); // Nun den Datei Explorer mit C: anzeigen.
}
</code></pre>
<p>Warum hält mein Programm beim system() Aufruf an? Erst wenn ich die Dosbox schließe wird der normale Datei Explorer aufgerufen und das Programm beendet sich.</p>
<p>Vielen Dank</p>
<p>abcd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714243</guid><dc:creator><![CDATA[abcd]]></dc:creator><pubDate>Fri, 22 May 2009 13:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to Explorer.exe neu starten. (system() und WinExec()) on Fri, 22 May 2009 15:35:28 GMT]]></title><description><![CDATA[<p>Hat sich erledigt, habe es mit CreateProcess gemacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714307</guid><dc:creator><![CDATA[abcd]]></dc:creator><pubDate>Fri, 22 May 2009 15:35:28 GMT</pubDate></item><item><title><![CDATA[Reply to Explorer.exe neu starten. (system() und WinExec()) on Sat, 23 May 2009 11:56:00 GMT]]></title><description><![CDATA[<p>Wenn Du CreateProcess hast, hast Du auch ShellExecute.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1714557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1714557</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 23 May 2009 11:56:00 GMT</pubDate></item></channel></rss>