|
|
|
|
February 11th, 2006, 05:32 AM
|
|
Captain
|
|
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
February 11th, 2006, 05:43 AM
|
|
Lieutenant General
|
|
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
That's happened to me and like you said, I reboot the computer and it then lets me delete the folder. I have no idea what causes it.
|
February 11th, 2006, 01:51 PM
|
|
Lieutenant Colonel
|
|
Join Date: Dec 2000
Location: DC Burbs USA
Posts: 1,460
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Re: OT:Sharing violation when deleting folder in W
Depends on the environment that the system is setup for. Where does the folder reside in the directory structure? And what is the name of the folder? Is the system in a Domain or Workgroup?
__________________
Think about it
|
February 12th, 2006, 03:19 PM
|
|
Captain
|
|
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
Quote:
Thermodyne said:
Depends on the environment that the system is setup for. Where does the folder reside in the directory structure? And what is the name of the folder? Is the system in a Domain or Workgroup?
|
I think it doesn't matter what is the name of the folder or where the folder is. That sharing violation bug has happened many times and only pattern I've noticed is that very often there have been images in those folders. So perhaps it's something to do with XP's preview property.
However I found a great program, Process Explorer, which can be used to close those open file handles. No need to restart any more.
__________________
'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?
|
February 12th, 2006, 04:41 PM
|
|
Lieutenant Colonel
|
|
Join Date: Dec 2000
Location: DC Burbs USA
Posts: 1,460
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Re: OT:Sharing violation when deleting folder in W
Shouldn�t be an issue with the preview indexing, unless a third party editor has modified the process. Got anything like Photoshop installed? Photoshop can really have an impact on windows if your not real careful with the install settings. Kodak is another one that can really make a lot of undocumented changes.
__________________
Think about it
|
February 12th, 2006, 05:17 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
There is a long-standing bug in XP with AVI files being marked as in use forever, which there is a registry hack to bypass. Wonder if there is the same thing for image files?
|
February 13th, 2006, 04:18 AM
|
|
Second Lieutenant
|
|
Join Date: Jul 2003
Location: Texas
Posts: 464
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Sharing violation when deleting folder in WinXP
If you have Windows Explorer open and looking inside that directory, it is marked as being used and will not delete. Possibly another window is open to it while you were deleting files.
__________________
I thought of the sun as a big bright ball of something that produced an intense absence of darkness. Alan Dean Foster No More Crystal Tears
A++SeGdy$+-++Fr?C++++Cst+SfAi--Mm-MpTS---SsROPw++Fq++Nd++++RpG++Mm++Bb
|
February 13th, 2006, 07:04 AM
|
|
Captain
|
|
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
I'm not running a multi-user system nor having Explorer windows open.
Most often this happens when I transfer images from my digital camera. I use memory card reader and copy images from card to hard disk using Explorer. When I've copied images, I look through them (using IrfanView) and delete poor shots. After that when I try to rename the folder I get the sharing violation error. However I can move all the images to a new folder, but I can't rename, delete or move the original folder.
__________________
'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?
|
February 13th, 2006, 09:46 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
Sounds like your camera software dosen't clean up after itself.
At least it is squatting in the corner instead of barfing all over your file system
__________________
Things you want:
|
February 13th, 2006, 02:19 PM
|
|
Captain
|
|
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Sharing violation when deleting folder in W
Quote:
Suicide Junkie said:
Sounds like your camera software dosen't clean up after itself.
At least it is squatting in the corner instead of barfing all over your file system
|
I'm not using any camera software. I use memory card reader and Ctrl-C Ctrl-V to copy images from the card.
__________________
'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?
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|