Subj : Re: The first argument To : borland.public.cpp.borlandcpp From : "Gary Setter" Date : Fri Nov 14 2003 08:25 am c:\p01.exe > How could I display the program's name only (p01.exe) ? Hi Laci, There are two things you could do. use strrchr(arg[0],'\\') or fnsplit and fnmerge (aka _splitpath and _makepath) Remember that the directory seperator is os dependent. Hope that helps Gary http://home.att.net/~setterg .