Click here to Skip to main content
16,011,541 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Netbios Pin
Den8-Dec-00 3:06
Den8-Dec-00 3:06 
Generalcreate a template list class assignment please help Pin
5-Dec-00 10:12
suss5-Dec-00 10:12 
GeneralMFC Objective Edit Control inside ATL CWindowImpl class Pin
Alexander Klinsky5-Dec-00 8:50
Alexander Klinsky5-Dec-00 8:50 
QuestionHow to update running EXE? Pin
Matt Philmon5-Dec-00 8:19
Matt Philmon5-Dec-00 8:19 
AnswerRe: How to update running EXE? Pin
Jim Howard5-Dec-00 8:39
Jim Howard5-Dec-00 8:39 
GeneralRe: How to update running EXE? Pin
Matt Philmon5-Dec-00 9:40
Matt Philmon5-Dec-00 9:40 
GeneralRe: How to update running EXE? Pin
ColinDavies5-Dec-00 10:42
ColinDavies5-Dec-00 10:42 
AnswerRe: How to update running EXE? Pin
10-Dec-00 17:31
suss10-Dec-00 17:31 
I've done this before.

What I did was to download new.exe to a temporary folder named something like temp.exe then run it as such:

temp.exe -replace c:\path\to\current.exe

then immediatly exit current.exe
temp.exe should read the command line and set a timer for like 5 seconds (make sure we give current.exe enough time to exit) the timer will delete current.exe, copy its self over current.exe, and then run it as such:

c:\path\to\current.exe -delete c:\path\to\temp.exe

current.exe will then be your updated exe and should delete the temporary file.

Hope this helps
-zack
GeneralBug in ListCtrl with GRIDLINES (ComCtl32.dll) Pin
5-Dec-00 7:37
suss5-Dec-00 7:37 
GeneralSubclassDlgItem Pin
5-Dec-00 7:34
suss5-Dec-00 7:34 
GeneralSmall Icons with CDC::DrawIcon Pin
5-Dec-00 7:22
suss5-Dec-00 7:22 
GeneralRe: Small Icons with CDC::DrawIcon Pin
Michael Dunn5-Dec-00 9:15
sitebuilderMichael Dunn5-Dec-00 9:15 
GeneralAccessing the scroll bars of a CView Pin
5-Dec-00 6:28
suss5-Dec-00 6:28 
GeneralLabel on toolbar button Pin
Luis Barreira5-Dec-00 4:23
Luis Barreira5-Dec-00 4:23 
GeneralRe: Label on toolbar button Pin
Michael Dunn5-Dec-00 9:23
sitebuilderMichael Dunn5-Dec-00 9:23 
GeneralWav in Resource DLL: Memory problem Pin
Eric Tremblay5-Dec-00 4:23
Eric Tremblay5-Dec-00 4:23 
GeneralGet user right to access a file in NT, without user password Pin
5-Dec-00 2:36
suss5-Dec-00 2:36 
Generalreading bytes directly from memory Pin
5-Dec-00 2:02
suss5-Dec-00 2:02 
GeneralRe: reading bytes directly from memory Pin
Michael Dunn5-Dec-00 9:28
sitebuilderMichael Dunn5-Dec-00 9:28 
GeneralRe: reading bytes directly from memory Pin
Suha Aktan8-Dec-00 10:07
Suha Aktan8-Dec-00 10:07 
GeneralActiveX persistance Pin
Serge_l5-Dec-00 1:55
Serge_l5-Dec-00 1:55 
GeneralCMDIFrameWnd problems Pin
4-Dec-00 23:33
suss4-Dec-00 23:33 
GeneralRe: CMDIFrameWnd problems Pin
Christian Graus5-Dec-00 0:16
protectorChristian Graus5-Dec-00 0:16 
GeneralA MIDI Timer Pin
Andy Monk4-Dec-00 22:50
Andy Monk4-Dec-00 22:50 
GeneralRe: A MIDI Timer Pin
Christian Graus5-Dec-00 0:17
protectorChristian Graus5-Dec-00 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.