Use ShellExecute() or ShellExecuteEx() Winn32 API functions to run myapp.exe. These function don't wait for the "other" exe to finish.
Vlad
>I have a tiny server EXE that's run from the user desktop, that checks version and copies new app EXE to local hard drive if needed. Then it runs the hard drive app EXE, so I have in the small server EXE:
>
>DO c:\etc\myapp.exe
>
>as the last line of code.
>
>My question is: is there a way to close the small server EXE after it launches the app EXE? Or a slightly different strategy that would accomplish this?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement