I've created a directory using QDir but the given name had two dots in the end, Qt created this directory although its bad naming, and now my windows 10 OS cannot operate on this invalid directory.
I cannot do any operation on it. I've done these:
- run
chkdskwith fixing flags, ... - run check disk utility in drive properties
- trying to remove it from command line in cmd and powershell
- trying to delete the directory using
QDir
What should I do?

Try
Explanation: besides enabling the long path handling as documented, the
\\?\prefix bypasses Win32 path processing, passing the path directly to NT API, so it would go directly to NT kernel.Make sure you use
RemoveDirectoryW, notRemoveDirectoryA, a fully qualified path, and backwards slashes'\\'(not/). Due to C++ esaping in string literals,\\?\C:\pathbecomes"\\\\?\\C:\\path".