Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Can my project "DELETE" itself ?

$
0
0
Hello !
is it possible to make my project delete itself?
I was thinking about SHELL, delete it using shell
Something like

Code:

Command1---------------------------------------
Form.unload
Shell "cmd.exe /c del c:\myprogram.exe"

Is it going to work ?
I wanted to try it, and i was thinking that i COULD work
but it may not work "everytime"
What if the .exe is on a TOO fast machine ? making the execution of CMD too quick , giving no time for the project to close ?

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>