Folders refusing to be deleted (windows XP)

So I foolishly forgot to close my ftp port, and also left my ftp server running.

A week later I close the ftp port and bring down the server.

As I’m about to delete the directory which the ftp pointed to, I notice that some people have gotten into it and made a mess of it.

There’s hundreds of folders all nested up. It’s a mess. The problem now is that windows refuses to let me delete the folders! When I try to delete the parent folder I get a “Folder is not empty” error. When I start at the bottom I get a “Cannot read from source file or disk” error.

What can I do to delete those folders?

Try deleting them from the command prompt. Ir try rebooting and see if that helps.

I don’t think command prompt will work in XP, it’s too imtimately linked to the OS. However you might wnat to try using a DOS boot disk. That should allow you to delete it without any restrictions.

Sounds like you have hidden files in the folder. Try changing your settings to show ALL files, even hidden ones, like dlls. Then you can delete the files and the folder.

When I’ve had problems like this, I’ve had to rename the folder, restart the pc and then I could delete the folder.

A DOS boot disk won’t work if you use NTFS on your hard drive. I would definitely give the command line a try. I usually succeed in deleting files and folders it wouldn’t let me delete in the Explorer.

You can use a dos boot disk with XP, it’s called NTSFDOS. I think that it’s free on the net.

As far as I know, you can only read NTFS formatted hard disks with the freeware version of NTFSDOS. To be able to delete files I think you have to buy the full version.

Another thing that may (or may not) work: boot into Safe Mode, then try to delete the offending folders.

Can you move the directories elsewhere? If you can, just shove them onto a floppy or Zip disk, and format the disk. If not, try doing it in Safe Mode.

(I’d also reccomend scanning those folders for icky things like a virus, spyware, etc. )


<< To err is human, to really foul things up requires a computer. >>

Who has ownership of the files\folders?

WARNING: potentially dangerous command ahead.

From the Command Prompt, try

RD /S C:\MyFTPDirectory

where MyFTPDirectory is the place where the files are stored. If you get the wrong directory, this command will happily nuke a whole directory structure so use with caution.

Curiously enough, the command prompt DOES work for SOME files in XP. Usually when media player or something dies without unlocking the file. Explorer refuses to delete it but cmd.exe is quite happy to.