[fpc-devel] suggestion: AllFilesMask constant

Tomas Hajny XHajT03 at mbox.vol.cz
Tue Mar 25 15:31:15 CET 2008


On Tue, March 25, 2008 12:09, Marco van de Voort wrote:
>> On Tue, 25 Mar 2008, Graeme Geldenhuys wrote:
>> >
>> > On later version of Windows our code does (Win2000, WinXP and Vista
>> > are tested). I don't think it works on Win9x versions.
>>
>> As far as I remember, * worked even in MS-DOS days ?
>
> Afaik it is an msdos-with-lfn (iow under w9x) extension. IOW it wouldn't
> work under plain dos.

To be more precise: '*' doesn't work without LFN support. This means that
LFN enabled versions of DOS (including those where LFN support is only
provided by some TSR) can use '*'.

On the other hand, all DOS and Windows (and OS/2) versions support '*.*'
as an equivalent of "all files" (with or without extensions). This means
that searching for '*.*' on Windows will find all of 'X.Y', 'a.' and
'123', whereas the same search on Unix will only find 'X.Y' and 'a.'. From
this point of view, you can safely use '*.*' on all DOS versions
regardless of the status of LFN support. In theory, you could do the same
on Windows too, but it's probably not guaranteed to stay like that in
future versions.

Tomas





More information about the fpc-devel mailing list