China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 23:13
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about long file names View 709 Replies 0
Original Poster Posted 2003-09-26 00:00 ·  中国 天津 联通
初级用户
Credits 113
Posts 2
Joined 2003-09-26 00:00
22-year member
UID 10387
Gender Male
Status Offline
Everyone, I want to ask about LFN.
First: under what circumstances must a file or directory name have a long file name? Is there any standard I can look up somewhere?
Second: which characters were illegal when creating files under DOS, but can be used now? And in long file names, how are those originally illegal characters handled?
Also: in Windows, when some long file names end up with the same short file name, after using ~1, ~2, etc., why is there a case like this in MSDN:
This is test 1.txt THISIS~1.TXT
This is test 2.txt THISIS~2.TXT
This is test 3.txt THISIS~3.TXT
This is test 4.txt THISIS~4.TXT
This is test 5.txt TH0FF9~1.TXT
This is test 6.txt THFEF5~1.TXT
What algorithm does it use?
I hope one of you experts can help me out. Even if you can just point me to where I can find similar materials, I would be extremely grateful!
Forum Jump: