How do I get application name and directory?

Jan 26, 2010 at 9:24am

Are there any functions that can get the name and only the name and another that can get the directory (without including the application within the string)?

Or do I have to use GetModuleFileNameA() and parse it?

Like this:
GetModuleFileNameA()
c:\Documents and Settings\Desktop\Project\Debug\Client.exe

But I am looking for a function that returns
c:\Documents and Settings\Desktop\Project\Debug\

And another that returns
Client.exe
Last edited on Jan 26, 2010 at 9:25am
Jan 26, 2010 at 1:25pm
Parse.
Topic archived. No new replies allowed.