I’m not sure what the heck is really going on here, but for some reason, sometimes I can’t delete files and folders. I get an error message telling me:
Could not find this item This is no longer located in E:\. Verify the item's location and try again.
What? I selected the folder from Explorer. I did a little investigation. When I try to rename the folder, you can see that there’s actually a space at the end of the folder name.
But renaming the folder and removing the extra space results in another error telling me the names are the same. This is weird because if you rename something the same, it should just work.
Oooookay. Now what? Maybe the command line?
Nope. Well… no, but almost.
To remove these things, we need to remove them using the old school DOS 8.3 format name. Issue the command to get the DOS 8.3 format names.
E:\fp23:\dir /X
Now, we can delete the folder (remove the directory) using it’s 8.3 name
E:\fp23\rmdir FAST~1
So weird that this is happening but at least now we can clean up afterwards.