fpc/docs/sysutex/ex41.pp
2002-06-02 11:12:25 +00:00

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.