Hi there,
I'm looking for a way to obtain the filename of the compiled executable when it is being run. I know on Windows you can use the GetModuleFileName_() function, but is there a more generic way of achieving this that will also work on Linux and MacOS?
Kind regards,
Francis
How can I obtain the filename of the executable? [Solved]
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
- Dreamland Fantasy
- Enthusiast
- Posts: 335
- Joined: Fri Jun 11, 2004 9:35 pm
- Location: Glasgow, UK
- Contact:
Re: How can I obtain the filename of the executable?
Nevermind, just found it (i.e. ProgramFilename())!
Kind regards,
Francis
Kind regards,
Francis