On Mon, Oct 25, 2010 at 09:55:29AM +0000, Mark Morgan Lloyd wrote: > > In project1.lpr add > > > > uses FileUtil; > > > > ProjectName := ExtractFilenameOnly({$I %file%}); > > which looks like it will handle the project name issue perfectly. In this case, yes.