Method of using long file name under DOS


Yesterday, I saw on the forum of a website that someone asked whether long file names could be used under pure DOS, and someone replied “impossible”. Of course, his answer is very wrong, but many people do not know how to use long file names in pure DOS. Now, I will introduce the method of using long file names under DOS.  

Dos and windows are constantly developing. The first operating system to support long file names was Windows NT # 3.5, and then Windows NT # 95 also adopted this technology. However, for some reasons, MS does not add the long file name function to pure DOS. however, Microsoft just doesn’t provide the application program interface (API) of LFN (long file name) under pure DOS, and DOS itself supports long file names. Many commands in dos7 and many new DOS software in recent years (such as the popular DJGPP program, etc.) as long as the LFN interface is found to exist, you can directly operate the LFN. Therefore, as long as an application can provide the LFN interface under pure DOS, the long file name under pure DOS can be realized

In order to achieve this goal, many people began to work hard. LFN} API was first provided by lfndos, so it is the most famous. However, because it stopped updating long ago, there were many bugs, and it did not support long Chinese file names. Fortunately, a Chinese helped the author of lfndos to write a sub function that supports long Chinese file names, so its latest version 1.07 already supports Chinese LFN. Lfndos has many disadvantages, such as slow speed, large memory and many problems, so it is not very practical. Therefore, someone decided to write another LFN interface driver, which is doslfn. Doslfn was made by a German and is still under development. Compared with lfndos, its biggest advantage is that it is fast, occupies less memory, and supports Unicode. Its latest version is 0.32o. With my help, its author now fully supports Chinese long file names, including Chinese long file names of GB2312, Big5 and even GBK character set. Because of its above advantages, it has become a very powerful and practical LFN interface driver, which can be downloaded from the “driver” of this site. Once there is a long filename interface, MS-DOS # 7 Various internal commands, external commands and pkunzip commands in X will automatically use long file names, which is very convenient. Due to the practicability of the long file name function, the long file name function has been automatically called in “MS-DOS} 7.10 full installation version”, so that the long file names in Chinese and English can be fully supported after DOS installation. Note MS-DOS # 6 Not in X, because it is too old to support long file names.  

In addition to the API driver of LFN, there are other software that provide LFN support, such as lfndir. As an enhancement tool of dir, it can display long file names. However, lfndir is a very} old software and does not support FAT32 partition and CD-ROM, so it is not very practical. The most powerful, practical and famous is ODI’s LFN tools It contains a set of long file name tools, such as ldir, LCD, LRD, ldel, etc. it is very convenient and stable. It fully supports FAT12 / 16 / 32 and long file names on optical discs. It can be used as a necessary tool for operating long file names under pure DOS. Another important point is that although MS-DOS does not have LFN support, it does not mean that this is true for all DOS. Rom-dos} 7.10 supports long file names and FAT32 locally without any other program. In short, DOS really supports long file names.  

Some old disk tools (such as NDD 8.0, etc.) do not support long file names because they do not appear when they are launched. If they are used, they may cause damage to long file names. However, almost all new DOS software launched in recent years support long file names. Some can directly use long file names as mentioned above, while others are “understand” Long file names exist without damage. Therefore, it is best to use these new DOS tools when using them, so that they can coexist harmoniously with long file names.