Author Topic: Getting the exectuable's file name [solved]  (Read 3296 times)

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Getting the exectuable's file name [solved]
« 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, ...
« Last Edit: March 26, 2007, 01:56:05 pm by stardust »
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4

Offline stardust

  • Multiple posting newcomer
  • *
  • Posts: 55
    • http://www.hightec-rt.com
Re: Getting the exectuable's file name [solved]
« Reply #1 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);
Own SVN builds (quite new) • SuSE Linux 10.0 • Linux kernel 2.6.13-15-default
gcc 4.0.2 (20050901)
wxGTK-2.6.1.0-4 • KDE 3.4.2b • gtk2 2.8.3-4