Problems with deleting files

I came accross some┬ádirectories today on our NAS that couldn’t be deleted – I really needed to get rid of them as they were causing backups to fail! Every time I tried to delete, I got the following windows error:

“cannot delete file: cannot read from source or disk”

The solution to this, was to fire up a command prompt, and locate the directory in question (Map a network drive if it’s a UNC path!), then run:

dir /x /a

This should give you the directory name, along with its shortname (e.g. AEU8P3~P). You can then either delete the folder (rd /?) or rename it (ren /?) by using the shortname!

Leave a Reply

Your email address will not be published. Required fields are marked *