![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-24 20:16 |
47,812 topics / 349,910 posts / today 1 new / 48,262 members |
| WinPE、PowerShell及其它命令行系统专区 » [Discussion] 8.3 Filename |
| Printable Version 3,231 / 3 |
| Floor1 electronixtar | Posted 2006-06-13 15:26 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
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? |
|
| Floor2 Wengier | Posted 2006-06-14 01:15 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
In fact, this is an extremely non-standard short filename generation method under NT CMD, and it can even be regarded as a bug. However, there is no such problem under pure DOS and Win9x.
Regarding E2E2~1, it should actually be interpreted as 2E 2E, which are the hexadecimal codes of the two characters "..". And because it is different from its corresponding long filename, the number suffix ~1 is added. |
|
| Floor3 6622186 | Posted 2007-04-25 11:03 |
| 高级用户 Posts 411 Credits 894 | |
|
This situation can also occur when the file name contains spaces and is particularly short.
|
|
| Floor4 yuan53770 | Posted 2010-03-06 23:51 |
| 初级用户 Posts 40 Credits 67 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |