How do I get application name and directory?


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
Parse.
Topic archived. No new replies allowed.