ex10.pp 267 B

1234567891011121314
  1. Program Example10;
  2. uses Dos;
  3. { Program to demonstrate the FSearch function. }
  4. var
  5. s : string;
  6. begin
  7. s:=FSearch(ParamStr(1),GetEnv('PATH'));
  8. if s='' then
  9. WriteLn(ParamStr(1),' not Found in PATH')
  10. else
  11. Writeln(ParamStr(1),' Found in PATH at ',s);
  12. end.