<?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[Datei mit CreateProcess verschieben]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe nach langer Zeit mal wieder eine Frage. Ich muss innerhalb einer Installationsroutine eine vorhandene Datei verschieben und später wieder zurückschieben. Ich wollte das mit CreateProcess machen, da system eine SHell aufmacht, was sich dann über die Installation legt.</p>
<p>Ich benutze den Shell-Befehl move, was mit CreateProcess aber nicht läuft. BEi system läuft es jedoch. Mein Code sieht so aus:</p>
<pre><code>STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &amp;si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &amp;pi, sizeof(pi) );

    // Start the child process. 
    CreateProcess( NULL,   // No module name (use command line). 
        &quot;move c:\\x\\x.dll c:\\&quot;, // Command line. 
        NULL,             // Process handle not inheritable. 
        NULL,             // Thread handle not inheritable. 
        FALSE,            // Set handle inheritance to FALSE. 
        0,                // No creation flags. 
        NULL,             // Use parent's environment block. 
        NULL,             // Use parent's starting directory. 
        &amp;si,              // Pointer to STARTUPINFO structure.
        &amp;pi );            // Pointer to PROCESS_INFORMATION structure.
</code></pre>
<p>Das funktioniert nicht. Testweise habe ich mal msiexec gestartet, und das klappt. Ich habe die move.exe auch gar nicht finden könne. Muss ich da eine andere dll mit inkludieren?<br />
Danke euch<br />
AkonF</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/134501/datei-mit-createprocess-verschieben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 19:37:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/134501.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Jan 2006 13:55:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 13:55:03 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe nach langer Zeit mal wieder eine Frage. Ich muss innerhalb einer Installationsroutine eine vorhandene Datei verschieben und später wieder zurückschieben. Ich wollte das mit CreateProcess machen, da system eine SHell aufmacht, was sich dann über die Installation legt.</p>
<p>Ich benutze den Shell-Befehl move, was mit CreateProcess aber nicht läuft. BEi system läuft es jedoch. Mein Code sieht so aus:</p>
<pre><code>STARTUPINFO si;
    PROCESS_INFORMATION pi;

    ZeroMemory( &amp;si, sizeof(si) );
    si.cb = sizeof(si);
    ZeroMemory( &amp;pi, sizeof(pi) );

    // Start the child process. 
    CreateProcess( NULL,   // No module name (use command line). 
        &quot;move c:\\x\\x.dll c:\\&quot;, // Command line. 
        NULL,             // Process handle not inheritable. 
        NULL,             // Thread handle not inheritable. 
        FALSE,            // Set handle inheritance to FALSE. 
        0,                // No creation flags. 
        NULL,             // Use parent's environment block. 
        NULL,             // Use parent's starting directory. 
        &amp;si,              // Pointer to STARTUPINFO structure.
        &amp;pi );            // Pointer to PROCESS_INFORMATION structure.
</code></pre>
<p>Das funktioniert nicht. Testweise habe ich mal msiexec gestartet, und das klappt. Ich habe die move.exe auch gar nicht finden könne. Muss ich da eine andere dll mit inkludieren?<br />
Danke euch<br />
AkonF</p>
]]></description><link>https://www.c-plusplus.net/forum/post/976973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/976973</guid><dc:creator><![CDATA[AkonF]]></dc:creator><pubDate>Thu, 26 Jan 2006 13:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 13:58:20 GMT]]></title><description><![CDATA[<p>Es gibt keine move.exe. Das ist ein Teil des Kommandozeileninterpreters. Es würde wohl mit cmd.exe /C move ... funktionieren. Aber warum nicht einfach CopyFile() verwenden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/976979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/976979</guid><dc:creator><![CDATA[.............]]></dc:creator><pubDate>Thu, 26 Jan 2006 13:58:20 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 13:59:46 GMT]]></title><description><![CDATA[<p>sorry ich meinte MoveFile()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/976985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/976985</guid><dc:creator><![CDATA[.........]]></dc:creator><pubDate>Thu, 26 Jan 2006 13:59:46 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 14:00:14 GMT]]></title><description><![CDATA[<p>Versuch es mal mit der MoveFile Funktion. Das sollte viel eifnacher sein: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefile.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefile.asp</a></p>
<p>mfg.</p>
<p>edit: ich war zu langsam</p>
]]></description><link>https://www.c-plusplus.net/forum/post/976986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/976986</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Thu, 26 Jan 2006 14:00:14 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 18:51:18 GMT]]></title><description><![CDATA[<p>Ich würde einfach MoveFile benutzen.</p>
<p>edit: Mist zu langsam.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/977221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977221</guid><dc:creator><![CDATA[Mobble]]></dc:creator><pubDate>Thu, 26 Jan 2006 18:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 18:52:51 GMT]]></title><description><![CDATA[<p><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>
]]></description><link>https://www.c-plusplus.net/forum/post/977225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977225</guid><dc:creator><![CDATA[roflmao]]></dc:creator><pubDate>Thu, 26 Jan 2006 18:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 18:59:14 GMT]]></title><description><![CDATA[<p>Mobble schrieb:</p>
<blockquote>
<p>Ich würde einfach MoveFile benutzen.</p>
<p>edit: Mist zu langsam.</p>
</blockquote>
<p>haha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/977237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977237</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Thu, 26 Jan 2006 18:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 19:00:24 GMT]]></title><description><![CDATA[<p>MoveFile funzt ja nur auf der selben Partition.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/977241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977241</guid><dc:creator><![CDATA[haha]]></dc:creator><pubDate>Thu, 26 Jan 2006 19:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Thu, 26 Jan 2006 19:25:22 GMT]]></title><description><![CDATA[<p>Ich Rate zu &quot;SHFileOperation&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/977268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977268</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 26 Jan 2006 19:25:22 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Fri, 27 Jan 2006 10:41:32 GMT]]></title><description><![CDATA[<p>Hey Danke,<br />
auf diese einfache Sache bin ich gar nicht gekommen... habe MoveFile verwendet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/977703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/977703</guid><dc:creator><![CDATA[AkonF]]></dc:creator><pubDate>Fri, 27 Jan 2006 10:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit CreateProcess verschieben on Fri, 27 Jan 2006 14:27:33 GMT]]></title><description><![CDATA[<p>Nimm SHFileOperation.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/978015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/978015</guid><dc:creator><![CDATA[bitte]]></dc:creator><pubDate>Fri, 27 Jan 2006 14:27:33 GMT</pubDate></item></channel></rss>