On Wed, February 29, 2012 18:11, Marco Borsari wrote:
Il 28/02/2012 23:34, Tomas Hajny ha scritto:
Jonas is right, it is no bug. The difference you get between the case
of having LFN enabled or not is most likely related to the fact that
you search for '*' mask rather than '*.*' in your
Il 28/02/2012 23:34, Tomas Hajny ha scritto:
Jonas is right, it is no bug. The difference you get between the case
of having LFN enabled or not is most likely related to the fact that
you search for '*' mask rather than '*.*' in your example. As you
might know, '*' matches
I missed that,
Hi all,
on system with long file name support activated (I have FreeDos with
doslfn), the example below types all files instead of directory only.
program test;
uses dos;
var f:searchrec;
begin
findfirst('*',directory,f);
while doserror=0 do begin
writeln(f.name);
findnext(f);
end;
On 28 Feb 2012, at 20:50, Marco Borsari wrote:
on system with long file name support activated (I have FreeDos with doslfn),
the example below types all files instead of directory only.
That is by design, see
http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html (the same goes
Jonas Maebe wrote:
That is by design, see
http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html (the same goes
for the findfirst from the Dos unit)
You have to check the attributes of the returned entries to see whether they
match what you want. This is TP/Delphi-compatible.
I
On 28 Feb 12, at 21:20, Marco Borsari wrote:
Jonas Maebe wrote:
Marco,
That is by design, see
http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html (the same
goes for the findfirst from the Dos unit)
You have to check the attributes of the returned entries to see whether