How do I generate a file path with a WinCE file full path greater than MAX_PATH (260) bytes?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.