mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:09:30 +02:00
19 lines
311 B
ObjectPascal
19 lines
311 B
ObjectPascal
Program Example41;
|
|
|
|
{ Program to demonstrate the FileSearch function. }
|
|
|
|
Uses Sysutils;
|
|
|
|
Const
|
|
{$ifdef unix}
|
|
FN = 'find';
|
|
P = '.:/bin:/usr/bin';
|
|
{$else}
|
|
FN = 'find.exe';
|
|
P = 'c:\dos;c:\windows;c:\windows\system;c:\windows\system32';
|
|
{$endif}
|
|
|
|
begin
|
|
Writeln ('find is in : ',FileSearch (FN,P));
|
|
end.
|