shared file violation?

D

diva _2000pro

I have two folders called "Website" I'm new to all this
and have made a few mistakes learning my way around. Thing
is, i'm trying to move the website folder somewhere else.
Because there are two it says 'cannot delete shared file
violation' or something and that the file may be being
used somewhere else.There is nothing in either
folder...how can i get rid of both and start again?
Any help would be apreciated.
 
D

Drew Cooper [MSFT]

Right. "File sharing violation". Something has a handle open to either 1)
a file you can't see, 2) one of the directories, or 3) something that's
marked for deletion but not deleted yet.. Sounds like it opened handle
without sharing for read.

1) You fire up cmd ("start->run->cmd.exe"), go to the offending directory
and check for hidden files with the attrib command. You can change the
attributes, then delete.

2) Maybe you have Explorer opened in that directory? That would keep a
handle open.

3) This one should solve any of these problems. Try to rename the files or
directories then reboot. Whatever was holding the files open won't be able
to find them after the reboot and you will be able to delete.


Alternately (to avoid rebooting) - Check out handle.exe or Process Explorer
(free) at sysinternals.com. They can show you what process is holding an
open handle to a file. Then you can kill the process.

Hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top