summaryrefslogtreecommitdiff
path: root/fpcdocs/refex/ex7.pp
blob: 177eeb3c2fc6b243f8418a75564341005919f9da (plain)
1
2
3
4
5
6
7
8
9
10
11
Program Example7;

{ Program to demonstrate the ChDir function. }

begin
  {$I-}
  ChDir (ParamStr(1));
  if IOresult<>0 then
    Writeln ('Cannot change to directory : ',paramstr (1));
end.