Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

about to fix the "final" doslfn bug (Announce)

posted by Richard, 09.04.2022, 06:15

>
> For FreeDOS / FreeCOM, you need "set DIRCMD=/lfn" and "lfnfor on" and
> "lfnfor complete on", IIRC. (DR-DOS 7.03's shell also supported LFNs ... if
> enabled by third-party driver.)
>

Thanks for information.

in my FreeDOS RC5 FDauto.bat I inserted the following lines


c:\FreeDOS\BIN\doslfnms.com
set DIRCMD=/lfn
lfnfor on
lfnfor complete on


and it appears to work for me (i.e. both 8.3 and long file name simultaneously shown when DIR)

Question - because I am using doslfnms.com (instead of doslfn.com) should all "lfn" be replaced by "lfnms" in the last 3 lines (of the 4 lines of code shown above) to reflect the long filename program being used?






>
> But the FreeDOS kernel doesn't support bigger than 2 GB files anyways.


For my test just now, I only worked with 32K files (instead of 1 Gi file which takes about 30 minutes to load from my usb stick). For interest, it only takes about 1 second to copy FAT32 RAM to FAT32 RAM a 1 Gi file. I do not understand the problem with 4 GiB files when using FreeDOS RC5.

I copied (using RC5) the generated 4 Gi file (in FAT32 RAM) to my usb stick (it took about 2+ hours to do so) and ended up with a 4Gi file on the usb stick. Using a HEX editor (in windows) the 4 Gi appears to be OK EXCEPT for the very first byte (was changed to x1A). I did read somewhere that FAT32 allows files to be 4G-1byte (so I will keep that in mind).


Now that the LFN(ms) appears to work for me - I will try extreme testing with LFN's in FAT32.


The only reason why I tried the old lfn program was that I did not have the longer filenames displayed with doslfnms.com (which seems to be resolved by the four code lines above).

Many thanks

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 346 users online (0 registered, 346 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum