Delete a temporary file created in VB from the same program.
Posted on 1999-11-15
OK, here's my problem... I am creating some temp files from my program. After I convert them over to a format I want, I would like to delete them, but no matter what I do, file scripting object, kill, shell to dos and deltree, the files are undeletable until I exit my program. I have tried everything I can think of but am probably missing something simple or it can't be done??? I need to delete the files from my program shortly after they are created. I have tried unloading the form even and deleting them from a Shutdown routine and still no go...I cannot even delete them from Filemanager until the program ends. Any ideas?