Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting a folder - "directory is not empty" 1

Status
Not open for further replies.

amberlynn

Programmer
Joined
Dec 18, 2003
Messages
502
Location
CA
Hello,
I'm not sure that this is the right forum...

I am running Win 2000.
I have a 'NetDisk' (ethernet network drive) that I use to store files on.
There were corrupt files on it, so I ran a scandisk.
Now I have a folder, called found.000 which contains another folder, called dir0000.chk, which as far as I can tell, contains nothing.
I can't delete either folders - I get the message "Cannot delete - directory is not empty".
I've tried doing this through the command prompt, but receive the same message.
How can I get rid of this?

Thanks!
Amber
 
you've got show hidden & system files turned on? (so you're sure there really isn't anything in dir0000.chk).

You said scandisk - so is this network drive formatted as fat32? (would suggest looking at permissions if ntfs) - nothing set to read only?

Have you tried command prompt command rd /s /q.

 
Yep hidden & system files is turned on.
Looked at permissions - tried rd /s /q
Same error - can't delete the folder because it isn't empty.
Any other suggestions???
Amber
 
Yeah, use this program to find out whats being hid that is running. Then use it to delete it if you want.


I love this program lol.

There is a point in wisdom and knowledge that when you reach it, you exceed what is considered possible - Jason Schoon
 
amber - what methods of access do you have to the network drive? (eg, is there any way of access it more directly - not from 2k over the network - because it sounds like its 2k that has the problem).

And is it fat32 or ntfs?
 
The network drive plugs into my router through an ethernet cable, and I access it like a drive on my computer.
My laptop and my desktop both have access to this drive.

The drive is NTFS.

Amber
 
At the command prompt type dir /x, then delete any files that are displayed by using the 8.3 filename format.

-------------------------------

If it doesn't leak oil it must be empty!!
 
I fixed it!
At the command prompt I ran chkdsk /f - it fixed the errors, then I was able to delete the resulting folders.

Thanks for everyone's help!
 
electronicsfreak, I am giving you a star, that is exactly what I needed with a SBS2k3 folder that was locked (see this thread). I checked to ensure that there were no remote "ties" to a user that deleted the folder, but this program showed there were two System Prcesses still holding the file open. Great thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top