Due to some special reasons, some files with very long and long names are generated in Disk D, which cannot be deleted or modified. There are two methods:
The first one: Compress the folder with "good compression" compression software, then open the compressed package, select the file, rename it, and then decompress it again.
The second type: if it needs to be read in the code, add it before the path
\\?\
That's it
as follows:
Why is there such a situation: see the link below
https://stackoverflow.com/questions/36219317/pathname-too-long-to-open/36237176
Probably means:
The regular DOS path is limited to MAX_PATH
(260) characters, including the terminating NUL
character of the string. You can use \\?\
extended length paths starting with a prefix to exceed this limit. This path must be a Unicode string, fully qualified, and only use backslashes as path separators