My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the filenames are too long due to the depth of the folder structures. Does anyone know of a good utility for cleaning up files like this?
feedback
|
|
From a command prompt:
This will list your files/folders in short name format. Then use the short name exactly as written to delete the file:
| |||||||||
feedback
|
|
I progressivley work my way into the path, renaming each successive parent folder to "1" and attempting to delete. You're effectively shortening the path each time and I've never had to work in by more than 4 or 5 directories until I'm finally able to delete the entire directory structure (which may or may not be what you want). You could do this from the last child folder as well and work your way up or down. | |||||
feedback
|
|
In some programs, including Command Prompt ( \\.\C:\some directory\other directory\a file with long name | |||
|
feedback
|
|
Rename the directory of cut/paste the file somewhere else, then delete it. Works here. Or just from the command prompt, if you don't feel like going through the trouble. | |||
|
feedback
|
|
The simplest way I've found is to boot from an ubuntu live CD. As an alternative you can create a shared folder halfway down the path and then map a network drive to that and do the delete from the mapped folder (even on the same machine) | |||||||||
feedback
|
|
Probably not the best way and I am interested to see what others come up with - I had this once and I tried a few things without any luck. Rather than looking for a good tool, I restarted with the Windows Disk in, went to the recovery console and just deleted it from there. Worked first time and really well! Also, just did a Google for you and found this - DelinvFile Looks Good but cannot vouch for it. Edit - Warning, just seen the above is only a trial - Maybe not as good as I first thought! | |||
|
feedback
|
|
You could always try Unlocker as it has delete capabilities for 'awkward' files. | |||
|
feedback
|
