Reputation: 1513
When compiling a Delphi app you have some params to use in the config $(Config)\$(Platform) places the compiled file in Release\Win32 Are there any param that gives me the programname as stated in the DPR file (which is also the name of the exe file)
Just to make it a bit more clear what I want: I want all my compiled exe to be put in a Folder called C:_Delphi_Compiled\Projectname\Config\Platform (Using the project I mention further down it will be C:_Delphi_Compiled\GUIDmaker\Release\Win32) This will give me a bit more control over my projects exe files and DCU files
Upvotes: 1
Views: 2096
Reputation: 1438
There's also Application.ExeName
, though if this is called by a dll the name of the calling exe is returned rather than the name of the dll.
http://docwiki.embarcadero.com/Libraries/en/Vcl.Forms.TApplication.ExeName
Upvotes: 0
Reputation: 938
Have a look at my Answer here: https://stackoverflow.com/a/9597461/978342
\$(Platform)\$(Config)\$(MSBuildProjectName)
this will give you what you need.
Upvotes: 0
Reputation: 4776
$EXENAME
is the name your project's output file (Project1.exe
for applications, Project1.dll
for libraries, etc.)
$PROJECTFILENAME
is the name of your DPR file
Upvotes: 2