Causes of shortened Vista system folder names

Source: Internet
Author: User
Causes of shortened Vista system folder names

Vista made great changes to the folder structure. My first impression was that it became more like a Unix layout. Microsoft finally decided to shorten the folder name, remove spaces in the middle of the name, and use partial acronyms.

C:/Documents and Settings are changed to C:/users.
Change my documents to documents
Change Application Data to appdata/roaming.
Change local settings to appdata/local
Change all users/Application Data to C:/programdata
......

The path has finally been restored. Unfortunately, the program files has not been changed. Microsoft insisted that programs and program files have different meanings. However, the reason for renaming is not because people think that the original name is not good, but for compatibility.

The person who has written the C program should remember the max_path constant, whose value is 260. A large number of windows APIs, shells, and applications are limited by this value. The file system has long supported a long path, but this c constant has never been changed to maintain compatibility. People who have read the Documents and Settings folder know that the folder names are abnormal and long, And the folder nesting level is very deep. It is easy to exceed 260, and now it is more and more prone to the path too long error. Some Unicode APIs provide support for long paths //? /Prefix), but few people know, because such support is more like a detour: does not support relative paths, does not support path format check and regularization, the worst thing is that files created in this way cannot be accessed by functions such as loadlibrary, or even in explorer. In this way, renaming Documents and Settings becomes the most practical method.

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.