>Hi,
>
>I am trying to delete an exe from my application after i run it to replace the file with anther one. We are using the following codes:-
>
>Clear events
>delete file (location&thenameofthefile)
That won't work if that code is in the EXE file you're trying to delete - a running EXE file can't delete itself.
I'm not sure what you're trying to achieve, but a Launcher program may do what you want. Go to the Downloads section of this site (
http://www.levelextreme.com/ShowHeaderDownload.aspx ) and search for Launcher, there are 4 results.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up