There's been a couple of threads about this,but I forget the exact solution. I think you have to create a batch file that will delete the app and when you unload the program, shell the batch file.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
lol that's what you all think. I think I know a trick around this. You make an API timer, and execute it to run in 1 second and u shut down your APP. This timer will delete your app and then end itself!
whil you cannot delete the file which is in use, you can instruct the OS to delete it upon next reboot.
In Win NT series you need to use the MoveFileEx api call, while on Win 9X series you need to create a entry into the Wininit.ini file.
I bet u need a fusion powered shuttle to reach my place...
Posts
963
to be honest, ur only way is to write VxDs, which VB isn't capable
of. VxD may get the opened handler, retrieve the filename,
intercept the file manipulation, then force deletion.
You must have a good knowledge in ASM and device driver
programming.
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline
So I consider all those working engineers sad people