Can't delete empty sub-directory

  • Thread starter Thread starter So'n'so
  • Start date Start date
S

So'n'so

Using XP Home, I am unable to delete an empty sub-directory. Went to the
DOS command line, but there's no evidence of any files (hidden or
otherwise). Any thoughts on this?
 
What files?

Be careful what you delete.
There are some folders that are often empty but Windows still expects
them as they are system files.
Only delete them if you know EXACTLY what they are and what created
them.

Try in Safe Mode.
Reboot tapping F8 each second.
Select Safe Mode at the menu.
 
Windows XP carried forward a bug from Windows NT in which Windows will
maintain a "phantom" file open within a directory. This is most notable on
floppy disks.

Things to double check:
You do not have an explorer window open in the directory or a subdirectory
of that directory
You do not have a command prompt open rooted in the directory

How to clear to "phantom" open file
- open a command prompt
- change to the directory (drive) that has the issue
- perform a directory listing - DIR [enter]
- change to a different directory (drive)
- perform a directory listing - DIR [enter]
- this causes the open file table to update (usually)
- in the commond prompt, delete the directory

Best command to zap a directory RD /S <directory>. Use sparingly as
directories and files deleted will not appear in the recycle bin.

For stubborn instances, reboot.

If you just have to know what is causing the issue, you can obtain a utility
to determine open file handles and the files that are open.
 
Back
Top