Page 1 of 1

#PB_Compiler_Executable

Posted: Sat Jan 26, 2008 4:26 pm
by PB
We have a constant called #PB_Compiler_File which gives us the name of
the source code we're working on, but it'd be nice to have a constant called
#PB_Compiler_Executable that gives us the name of an exe just compiled.
That way we could set an IDE tool to work on the exe after compilation. :)

Posted: Sat Jan 26, 2008 6:07 pm
by freak
To know the name of the exe within the program itself, use ProgramFilename().
A compiler constant would be fairly useless, as it becomes incorrect as soon as
you move the compiled program to a new location ;)

To know the compiled executable from a tool, use the %EXECUTABLE commandline option
for the tool. Having a constant for it _inside_ the compiled program will not
help your tool anyway.