ex7.pp 193 B

1234567891011
  1. Program Example7;
  2. { Program to demonstrate the ChDir function. }
  3. begin
  4. {$I-}
  5. ChDir (ParamStr(1));
  6. if IOresult<>0 then
  7. Writeln ('Cannot change to directory : ',paramstr (1));
  8. end.