As we all know, the path maximum of the file name in the Windows system is MAX_PATH. For example:
Windows XP System, test the length of the file name:
(1) in partition e:\ The root directory of the new file, with a maximum filename length of: 255. ---full path length >>> 258
(2) in partition e:\ Subdirectory Program Files\ creates a new file with a maximum filename length of: 242. ---full path length >>>259
Under the WinCE system, there are certain limitations.
In addition, if you try to e:\ the The root of the newly created file with the maximum file name length cannot be copied to the subdirectory. Prompt when copying: The specified file name is invalid or too long.
How does a file path that generates a WinCE under a file full path greater than MAX_PATH (260) bytes?
In fact, the problem is very simple, want to everyone know that USB or SD device in Windows XP and other systems and in the WinCE system is recognized after the root directory is not.
In desktop systems such as Windows XP, typically the root directory, such as: f:\
In the Windows CE system, the SD card is generally the following directory: \storage card or \storage card 2 or other; USB is typically a directory of \hard Disk.
Using systems such as Windows XP and WinCE systems to complete a file path that generates a WinCE file full path greater than MAX_PATH (260) bytes.
Copy the longest file name that is generated in one of the root directories of the Windows XP system to SD/USB. This sd/usb is then inserted into the WinCE system, where the long file name files are just copied, and the full path of the other files will be greater than MAX_PATH (260).
This situation may result in partial access to a program that uses MAX_PATH as the full path maximum value of the file name, causing the program to appear abnormally.
How do I generate a file path with a WinCE file full path greater than MAX_PATH (260) bytes?