I have a temporary file that my app creates called file.tmp, however I to delete it when my app ends.
Does anybody know how to delete this file using Form_QueryUnload
Printable View
I have a temporary file that my app creates called file.tmp, however I to delete it when my app ends.
Does anybody know how to delete this file using Form_QueryUnload
VB Code:
Kill [i]FileName[/i]
:)
pretty simple
Kill "C:\example.exe" you can change the file dir if you need to! and dont go and be malicious.... lol i love that word:p
note, this wont move the file to the recycle bin... doing that is a bit more complicated and not built into vb
edit: see james' code a few threads down... what the heck theres been like 3 posts asking how to delete files today...
this post was posted 4 months ago :rolleyes:Quote:
Originally posted by dis1411
note, this wont move the file to the recycle bin... doing that is a bit more complicated and not built into vb
edit: see james' code a few threads down... what the heck theres been like 3 posts asking how to delete files today...