Writing over an executable?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have an executable application that I would like to update from within the
application. Currently, within the application the user can select to update
the software from the USB, but I can't copy the new executable over the one
that I am currently running. What is the best method to updating the
currently running executable? I am programming with VC++ for a win32 console
app. Is there any API's that allow me to close my application, write over
the executable, and then restart that application without any user input?
--
Ben
.



Relevant Pages

  • Saving & Restoring Form Information
    ... Is there any way to save the user input so that next time a user runs the app ... Axe ... Prev by Date: ...
    (microsoft.public.word.vba.general)
  • Eventlogs
    ... If I code an eventlog for an app and I put come code into Global.asax ... I would think I would need to restart ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Yet another problem I only get...phantom iTunes
    ... shut down the app. ... The one place where his story is fishy, to me, is the time frame. ... me that Application "x" has stopped the restart. ... "Cannot speak to other situations, not without details anyway, but the ...
    (comp.sys.mac.advocacy)
  • Re: Java at startup
    ... You also sent me something stating that "When you restart the app it ... I originally had this script run from the ... >> Dave Stewart ...
    (AIX-L)
  • Re: [OT] Computer Comment, Please?
    ... up all my processing power until the app and or computer crashes. ... and that XP restarted w/ System Restore ... 98 will sometimes auto restart as well. ... Conservatives are not necessarily stupid, ...
    (alt.guitar.bass)