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)
Bookmark this Page!
BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |
Related Posts
- Why There Are Two Instances of Sidebar.exe Running
- Configure Task Manager to Display Full Path of Running Processes
- View the List of Services Hosted by the Svchost.exe Process Using Task Manager in Windows 7 and Vista
- View Open Handles to a File or Folder From the Context Menu
- Analyze and Defragment Buttons in Disk Defragmenter Do Not Work
- How to Rebuild the Icon Cache in Windows Vista and Windows 7
- Restore the Missing userinit.exe File
- Multiple Instances of iexplore.exe Run When Using Internet Explorer 8
- How to Start Vista Task Manager in Elevated Mode by Default
- Fix Services MMC Extended View Is Blank in Windows XP
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?

› 
Hi,
looks like Windows 7 does it itself when you open file with the WIN32 API.
André
I don’t understand why IE (in Vista) does not implement the interface but IE in W7 does? Those two examples (screenshots 2 & 3) involve IE only. To better explain this, see this screenshot:
http://www.winhelponline.com/blog/wp-content/uploads/temp/w7-fiu.png
http://www.winhelponline.com/blog/wp-content/uploads/temp/vista-fiu.png
http://www.winhelponline.com/blog/wp-content/uploads/temp/vista-fiu-2.png
In both the occasions, the executable file (clsidviewer.exe) is the same. I’m the author of that proggie and I haven’t implemented the IFileInUse interface.
Windows Explorer calls it too in Vista, but the application that opens the file must implement the inferface. Here is an example of an opened Word File which I try to delete under Vista Sp1.
http://www.pic-upload.de/07.02.09/bben2p.png
@Andre: Thanks! Does that mean that Windows Explorer in Vista does not call/use this function, but Windows 7 Explorer does?
Hi,
the Information about the application is also displayed under Vista if the Application implements the IFileIsInUse Inferface ;) This is not a new feature from Windows 7
André