You may have encountered the "File in use" errors when deleting files/folders, especially when clearing out the Temp folder. To successfully delete the temporary files which are in use, you need to determine the process name which has locked the file, and then close the corresponding application first. In Windows 7, the File In Use dialog has improved, as it displays the name of the process which has locked the file.
Here is how the File In Use dialogs appear in various Windows Operating Systems
Windows XP

Windows Vista

Windows 7

Fig 3: File In Use dialog in Windows 7, showing the process name / handle (Internet Explorer)
Related Posts
- How to Use Resource Monitor to Find Which Process Has Locked a Given File in Windows 7
- How to Determine the Program or Process That Owns an Error Message Window?
- Configure Task Manager to Display Full Path of Running Processes
- Why There Are Two Instances of Sidebar.exe Running
- How to Use Process Monitor to Track Events and Generate a Log File
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?




Great post! These are necessary things to keep in mind, it’s often easy to forget regarding the simple things once you get consumed by a project.