ex41.pp 311 B

123456789101112131415161718
  1. Program Example41;
  2. { Program to demonstrate the FileSearch function. }
  3. Uses Sysutils;
  4. Const
  5. {$ifdef unix}
  6. FN = 'find';
  7. P = '.:/bin:/usr/bin';
  8. {$else}
  9. FN = 'find.exe';
  10. P = 'c:\dos;c:\windows;c:\windows\system;c:\windows\system32';
  11. {$endif}
  12. begin
  13. Writeln ('find is in : ',FileSearch (FN,P));
  14. end.