fpc/docs/olinuxex/ex47.pp
2004-10-16 13:14:03 +00:00

13 lines
199 B
ObjectPascal

Program Example47;
{ Program to demonstrate the DirName function. }
Uses oldlinux;
Var S : String;
begin
S:=FExpand(Paramstr(0));
Writeln ('This program is in directory : ',Dirname(S));
end.