3

I have been developing some backup software. Somewhere along the line, I ended up with empty files with the same names as some now missing folders. And these files cannot be removed.

The files are on a network drive.

Listing in Explorer

The Properties Dialog:enter image description here

Here's a directory listing at the DOS prompt:

Directory Listing

Here is using DIR /X:

Directory Listing with /X

I tried deleting these files in Windows Explorer, at the DOS prompt, and at the DOS prompt using the short filenames (DEL FNN58M~6). In all cases, I get no error message and the files appears to be gone. But when I refresh, the file is still there.

I first detected these files a couple of months ago. I have rebooted many times since then. But the problem persists.

Does anyone know what else I can try?

EDIT:

So I finally found the time to connect the drive directly to a computer. When I do, these "files" now appear as folders with all expected contents inside. I ran a scan of the drive and it reported no errors were found. Very strange. I think my best best is to reconnect the drives and reset everything and see if they can be recognized as folders.

UPDATE: After looking at the properties of these items for a while, I reconnected the drive to my router and again they appear as empty files.

3 Answers3

1

You mentioned that these empty files have the same names as some now missing folders. I have experienced this problem in the past, also.

There are several possible solutions, although they are not very promising:

Other processes running on the network

As suggested in the comments, there may be virus scanners or other programs that create these files if they are not there. It may be very difficult to isolate what other machine on your network is connecting and writing these files.

You have indicated that you are able to connect the drive to another computer. If you are able to put the drive in a machine not connected to the network, that would certainly help diagnose whether it is a problem with the physical disk, or if the files are coming from another machine on the network.

Corrupted clusters on the disk

When you have files that

  • appear to be deleted, but reappear immediately
  • give a nasty error when their parent directory is deleted
  • have the same name as a deleted directory

this usually means there are some clusters that have become corrupted on the physical disk. This seems somewhat plausible in your case, as backup software was being developed and this disk may have been hit fairly hard.

The best solution is to run chkdsk to fix the damaged areas. This will probably require you to login locally to the machine where the network drive is being stored. Depending on the size of the disk, this process can take many hours, and the drive will be unavailable during this time.

Physical disk needs to be reformatted

This may be unlikely in your case, but is also a possibility. Since you are able to connect the problem disk to another computer, it might be worth copying all the files/directories to a second clean disk -- being careful to skip over the problem files.

After that, try putting the clean disk back where the problem disk used to be. If the problem goes away, you're done! If the problem persists, that would seem to indicate the files are coming from a running process, or somewhere else on the network.

1

According to your information, everything is correct when the drive is connected directly to the computer, the problem only arrives when it is connected to the router as a network drive.

Therefore there is a problem with your router firmware.

I think your options are to, first, find if there is a firmware update to the router. Second, if this does not help, whenever some operation fails in the router, connect the drive to the computer and do there the operation. There is of course also the option to replace the router.

harrymc
  • 498,455
0

You can try to see if you may be able to rename the folder, then see if you are able to delete it.

If not, then open regedit, click on File (menu bar) and Export. Navigate to your desktop, and see if you may be able to delete the folder from within this "Export Registry File" dialog, then just close the dialog and regedit.

Hope this helps.

Marin
  • 1