Page 1 of 1

Application Name

Posted: Tue Aug 03, 2010 5:25 pm
by melliott42
Hello,

How can I programmatically get the application name?

I need this for a generic function.

For instance, if my application is called MyApp.exe how can I extract "MyApp" part of the name. This would of course be different for each application.


Thanks,

Michael

Re: Application Name

Posted: Tue Aug 03, 2010 5:36 pm
by esgici
GetProgramFileName()

Re: Application Name

Posted: Tue Aug 03, 2010 7:28 pm
by melliott42
Thanks esgici. Very nice!

I think I asked this one a year ago. Sorry I did not search thoroughly enough.