For some background, I'm on Windows 10 however with the files I'm going to talk about I've used them in shared folders with Ubuntu VMs before.
In a folder on my machine, there is a file named '...' I really don't know where this file came from. It was inside a directory which contained one of my programming projects, in which I was using git. However, I cannot delete this file in any means I've tried so far. When attempting a simple right-click + delete, I get the message: "Error 0x80070091 The directory is not empty."
When I attempt to delete from powershell using del or rm, I get the message: "When attempting to del : An object at the specified path C:\Users\mdmil\Concurrency\... does not exist."
I cannot rename the file by any means. When I try to rename from powershell, I get the same aforementioned error. When I try to rename from file explorer, I get a "this file is open in another program" error.
I even got desparate enough to try to share the folder with a Linux VM, and attempt to delete the file via the inode number to no avail.
When I attempt to open the file in notepad++, no file opens. I presume it is because it is trying to interpret it as a directory due to the ... naming.
I'm currently at a loss as to how to fix this. Any help would be appreciated!
If you go to the directory where the ...
file is, then type:
type dir /x
you should see the file and its 8.3 name, eg:-
Directory of C:\Users\CurrentUser\Temp
09/12/2018 23:09 <DIR> .
09/12/2018 23:09 <DIR> ..
09/12/2018 23:09 0 A535~1 ...
You can now use this 8.3 name to delete it, eg:
del A535~1
I found a fix to the issue. It's not a great solution, but it worked. I opened git bash to that folder, use "rm -rf ..." and that deleted the file in question. Still haven't figured out how to fix it with native Windows tools.
User contributions licensed under CC BY-SA 3.0