View Single Post
  #1  
Old February 11th, 2006, 05:32 AM
Asmala's Avatar

Asmala Asmala is offline
Captain
 
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
Asmala is on a distinguished road
Default OT:Sharing violation when deleting folder in WinXP

Quite often when I try to remove a folder in WinXP, I get the error message: Cannot remove folder "folder name": There has been a sharing violation. The source or destination file may be in use. However, I can remove all of the files inside the folder, but not the folder itself. Also, I noticed that the folder can be deleted if I kill the explorer.exe process or restart the computer.

Had anybody else experienced this? Today I decided to find out what was causing the problem. I found what is the problem, but not why it's happening. The problem is that the explorer.exe has an file handle open in the folder. When I forced the handle to close, I could remove the folder as usual.

So, has anybody any ideas why the explorer.exe leaves an open handle there? Any other explanations than the obvious: XP sucks
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?
Reply With Quote