Hi,
I have a small utility that deletes files from folders using .NET's FileInfo.Delete() method. Basically, I can catch an IOException if the file is currently open. This works for all files except for image files (JPG, GIF, BMP, ect.). When these types of files are open, the program is still able to delete them without throwing any exception. Have you encountered this before? How would go about detecting that these types of files are open so that I can prevent the deletion.
Thanks, Minh