ShowMessage( ExtractFilePath(Application->ExeName) );
o:
ShowMessage( ExtractFilePath(_argv[0]) );
o bien:
ShowMessage( ExtractFilePath(ParamStr(0)) );
Saludos. _Leo