Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


deleting a folder - "directory is not empty"

deleting a folder - "directory is not empty"

deleting a folder - "directory is not empty"

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?


RE: deleting a folder - "directory is not empty"

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.

RE: deleting a folder - "directory is not empty"

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???

RE: deleting a folder - "directory is not empty"

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

RE: deleting a folder - "directory is not empty"

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?

RE: deleting a folder - "directory is not empty"

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.


RE: deleting a folder - "directory is not empty"

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!!

RE: deleting a folder - "directory is not 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!

RE: deleting a folder - "directory is not empty"

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close