Running this command 7z.exe e -o=.. example.zip created a directory =...
How can I delete it again?
del =.. can not delete it: "Could Not Find =.."rename =.. x does not help: "Access is denied."Any other ideas?
I found this solution which worked:
dir /x told me the "8.3 name" of =.. was _5259~1.rmdir /s _5259~1 managed to delete the folder.Windows generally disallows paths ending with dots; or rather it strips all trailing dots, to maintain compatibility with really old software.
You can however bypass the Win32 path canonicalization using the \\?\ prefix:
rmdir "\\?\C:\Users\Peter\=.."
The syntax requires a full absolute path (drive letter and all), because you're also bypassing the code that normally expands relative paths. Quotes also seem to be required, due to the way Cmd's built-ins interpret punctuation.
User contributions licensed under CC BY-SA 3.0