fpc/docs/linuxex/ex47.pp
2004-07-18 11:57:11 +00:00

13 lines
204 B
ObjectPascal

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