[prev] [prev-tail] [tail] [up]

#### 7.2.4 A note on long file names under d o s

Under Wi n d o w s 95 and higher, long filenames are supported. Compiling for the Wi n d o w s target ensures that long filenames are supported in all functions that do file or disk access in any way.

Moreover, Free Pascal supports the use of long filenames in the system unit and the Dos unit also for go32v2 executables. The system unit contains the boolean variable LFNsupport. If it is set to True then all system unit functions and Dos unit functions will use long file names if they are available. This should be so on Wi n d o w s 95 and 98, but not on Wi n d o w s NT or Wi n d o w s 2000. The system unit will check this by calling d o s function 71A0h and checking whether long filenames are supported on the C: drive.

It is possible to disable the long filename support by setting the LFNSupport variable to False; but in general it is recommended to compile programs that need long filenames as native Wi n d o w s applications.

[prev] [prev-tail] [front] [up]