Not suggesting this is a bug, I'm quite sure it's not, but I do need to find a way around this. This goes back to my thread about zlib and passwords. Since there is apparently no way to zip a bank with a password, I'm having to write temp files to disk, archive them and delete the archives. Doesn't really matter, since the end user won't have any of my tools and I can read them straight into memory without unpacking to disk.
However, I can't get the files to delete when I'm finished with them. I've closed the streams, closed the archives, everything is finished with, but deletefile doesn't delete them.
I don't know why this is happening, but I'm guessing it might be because the program is trying to delete too quickly after closing the stream and the file is not available for deletion for a few milliseconds. It's a long export process so I don't really care about waiting a few millisecs until the file is ready for deletion, but is there a proper way to do this? ( Other than trying over and over and seeing if it worked with filetype. )
Failing that, is there a more powerful way to delete a file? I recall that there was a little program you could download which had shell integration, and you could delete any file by selecting this program on the right click menu. Files that normally would refuse to delete with some kind of "this file cannot be renamed or deleted as it is currently being used by a program" just went bye-bye. Any idea how they work?
Is there any way of detecting when they are suitable
However, I can't get the files to delete when I'm finished with them. I've closed the streams, closed the archives, everything is finished with, but deletefile doesn't delete them.
I don't know why this is happening, but I'm guessing it might be because the program is trying to delete too quickly after closing the stream and the file is not available for deletion for a few milliseconds. It's a long export process so I don't really care about waiting a few millisecs until the file is ready for deletion, but is there a proper way to do this? ( Other than trying over and over and seeing if it worked with filetype. )
Failing that, is there a more powerful way to delete a file? I recall that there was a little program you could download which had shell integration, and you could delete any file by selecting this program on the right click menu. Files that normally would refuse to delete with some kind of "this file cannot be renamed or deleted as it is currently being used by a program" just went bye-bye. Any idea how they work?
Is there any way of detecting when they are suitable