Hi All,

I'm using FreeDOS with a DOSLFN driver loaded through autoexec.bat.  The
harddisk is formatted with a FAT32 single partition.

I wrote a small program in C to create a file with a long file name as
follows.

void main(void)
{
    FILE *fptr = fopen("e:\\aerosystems.txt", "w");

    fprintf(fptr, "Genesys\n");
    fclose(fptr);
}     // END main()

And then I compiled using the Watcom compiler:

@wcc386 main.c  -d1 -w4 -e25 -zq -fp5 -fpi87 -5s -bt=dos -mf -we -okl+mnt
-wcd=201
@wlink name TEST d all SYS dos4g op q op st=64k FILE Main.obj

When I execute this program, the file is created as expected however the
filename appears to be a short name instead of a long file name.

Here is my understanding.  I have already loaded the DOSLFN at startup.
Therefore, I was expecting the above program to create a file called
"aerosystems.txt" (with a long file name).  Instead, I see the file name as
"aerosyst.txt" in the hard disk. I also manually looked at the directory
sector in the hard drive and ensured the program is creating the short file
name only and not long file name.


Could someone please help to understand what is going on here?  I looked at
the Q&A before I posted here. I didn't see any similar questions.
Therefore, request help from the FreeDOS experts.

Thank You!

Thanks,
Anand
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to