just write PAnsiChar(Application.ExeName) that is assuming you have anything except D2009.