Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2000-11

FSearch & DOS...

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

KO Myung-Hun

Hi.

Below is the simple source for FSearch test.

---------- fsearch.pas
program fsearch_test;
uses
    Dos;
begin
    WriteLn( FSearch( 'fsearch.exe', GetEnv( 'PATH' )));
end.
-----------

If you copy 'fsearch.exe' to the directory not specified in PATH,

and launch 'fsearch.exe' in other directory, then 'fsearch.exe' do not

report any messages.

And if you launch 'fsearch.exe' in the directory not specified in PATH,

and other 'fsearch.exe' in the directory specified in PATH,

'fsearch.exe' report path to 'fsearch.exe' in PATH incorrectly.

I tested this with BP 7.0 in DOS 7.10, aka. Win95 OSR2.

Finally, I have a question. What mean 'BTW' and 'OTOH' ... ?

I'm sorry I'm

For better FPC !!!

from KO Myung-Hun...

Reply by email

Unknown author
to KO Myung-Hun: Hi. Below is the simple source for FSearch test. ---------- fsearch.pas program…

Date sent: Mon, 13 Nov 2000 23:16:32 +0900
From: KO Myung-Hun
To: FPC mail
Subject: [fpc-devel]FSearch & DOS...
Send reply to:

Hi,

Below is the simple source for FSearch test.

.
.

you didn't implement the algorithm described in my previous e-mail completely (this was only the third point, but the first two were missing in your implementation). Believe me, I knew what I was talking about. :-) Anyway, I found a more elegant solution anyway (just submitted to CVS).

Tomas

Reply by email