Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete an EXE
Message
From
19/05/2011 03:32:02
 
 
To
19/05/2011 03:21:34
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01511088
Message ID:
01511089
Views:
73
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform