Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: stardust on March 14, 2007, 02:51:58 pm

Title: Getting the exectuable's file name [solved]
Post by: stardust on March 14, 2007, 02:51:58 pm
Hi,

how can I get the executable's file name?

* Get the file name resp.absolute path to the exe?
* Finding out if the exe is up to date/outdated/not there at all?
* The file name must respect the actual settings of the project, build target, ...
Title: Re: Getting the exectuable's file name [solved]
Post by: stardust on March 26, 2007, 01:54:57 pm
I did it this way:

Code
wxString exeFileName = _("${TARGET_OUTPUT_DIR}${TARGET_OUTPUT_FILE}");
Manager::Get()->GetMacrosManager()->ReplaceEnvVars (exeFileName);