Recently, I have read a lot of discussions about "abnormal directories" and have gained a lot. I have come up with several questions:
1. For the format paths of 8.3 format and long filenames, which one will the system search preferentially? (For example, there are both C:\Program Files and C:\progra~1 directories in the computer)
2. According to the principle of permutation and combination, the short filename can represent at most 9 filenames/directory names with the same first 8 characters. Then, actually test it. Create 20 directories, namely:
aaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaa (1)
aaaaaaaaaaaaaaaaaaaaa (2)
aaaaaaaaaaaaaaaaaaaaa (3)
.....
aaaaaaaaaaaaaaaaaaaaa (20)
dir /x shows:
AAAAAA~1
AAAAAA~2
AAB2DC~1
AAB2EC~1
AAB2FC~1
AAB20D~1
AAB21D~1
AAB22D~1
AAB23D~1
AAB24D~1
AAB25D~1
AAB26D~1
AAAAAA~3
AAC2D4~1
AAC2E4~1
AAC2F4~1
AAC205~1
AAC215~1
AAC225~1
AAC235~1
AAC245~1
AAC255~1
AAC265~1
AAAAAA~4
AAC2DC~1
AAC2EC~1
AA4064~1
AA406C~1
AA5064~1
AA506C~1
AA6064~1
What is the pattern here?
3. Create a D:\...\ directory, and it will display D:\e2e2~1. How to explain this?
1. For the format paths of 8.3 format and long filenames, which one will the system search preferentially? (For example, there are both C:\Program Files and C:\progra~1 directories in the computer)
2. According to the principle of permutation and combination, the short filename can represent at most 9 filenames/directory names with the same first 8 characters. Then, actually test it. Create 20 directories, namely:
aaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaa (1)
aaaaaaaaaaaaaaaaaaaaa (2)
aaaaaaaaaaaaaaaaaaaaa (3)
.....
aaaaaaaaaaaaaaaaaaaaa (20)
dir /x shows:
AAAAAA~1
AAAAAA~2
AAB2DC~1
AAB2EC~1
AAB2FC~1
AAB20D~1
AAB21D~1
AAB22D~1
AAB23D~1
AAB24D~1
AAB25D~1
AAB26D~1
AAAAAA~3
AAC2D4~1
AAC2E4~1
AAC2F4~1
AAC205~1
AAC215~1
AAC225~1
AAC235~1
AAC245~1
AAC255~1
AAC265~1
AAAAAA~4
AAC2DC~1
AAC2EC~1
AA4064~1
AA406C~1
AA5064~1
AA506C~1
AA6064~1
What is the pattern here?
3. Create a D:\...\ directory, and it will display D:\e2e2~1. How to explain this?
C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"

