How can i delete image files (ex *.gif) that might be in use, by another process in a directory?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t delete it, while another process is using it. This comes from low-level file handling of Windows. However you can play around with renaming the file or setting it to be deleted on next boot.
Process Explorer tool can help you finding which process is using the file and it can actually close the handle – given proper/administrative rights. So it is possible with API calls, but such forced close of file handle can result in unpredictable behavior of that process.