how can i delete a running exe file, or maybe delete it after the running exe exits?????
Printable View
how can i delete a running exe file, or maybe delete it after the running exe exits?????
You may have to create two programs.
As you exit (form_unload), the main program, put the code in a timer on the other form:
[/code]Shell ("apptoload.exe", 0)
Kill "yourapp.exe"[/code]
Because you cannot delete an app that is loaded. That is all I can think of..unless someone came up with something else.
Well, by unlocking your harddrive you could, but I wouldn't recommend it. Matthews idea is better