# Output exe filename from a delphi build?

**URL:** https://www.finalbuilder.com/forums/t/output-exe-filename-from-a-delphi-build/2071
**Category:** Discussion
**Created:** [January 16, 2013, 5:50am UTC](https://www.finalbuilder.com/forums/t/output-exe-filename-from-a-delphi-build/2071 "2013-01-16T05:50:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 16, 2013, 5:50am UTC](https://www.finalbuilder.com/forums/t/output-exe-filename-from-a-delphi-build/2071/1 "2013-01-16T05:50:18Z")

</div>

How can i find out the resulting application exe filename + path when doing a delphi build ? I know delphi has properties like DCC\_DependencyCheckOutputName or if that's not avalible that you can use outputdir + rootfilename(dprfile) + '.exe' or something along those lines. I just kinda wondered how one should be getting this on a normal way in finalbuilder ?

The reason i ask is because i do a loop (iteration) build and in each iteration i also execute signtool.exe to sign our newly builded exectuables, it should only be done on .dll and .exe files but i can't seem to find a good way to figure out the resulting exe or dll filename when doing a delphi build.

Any idea's ?

thanks

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 17, 2013, 1:00am UTC](https://www.finalbuilder.com/forums/t/output-exe-filename-from-a-delphi-build/2071/2 "2013-01-17T01:00:27Z")

</div>

Hi

There are two ways I can think of :

1) Check the file extension of the delphi project file, if it's dpr then it's an exe or a dll, if it's dpk then it's a package. Determining if it's a dll or exe would require reading the first line of the project file to see if it's a program or a library.&nbsp;

2) &nbsp;read the dproj file DCC\_DependencyCheckOutputName. I have attached an example on how to do this.&nbsp;

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 17, 2013, 9:33am UTC](https://www.finalbuilder.com/forums/t/output-exe-filename-from-a-delphi-build/2071/3 "2013-01-17T09:33:54Z")

</div>

Hi thanks for the example and for giving the idea of looking at the dpr file i hadn’t thought of that being an option (it would just require checking if it’s a program or library) but i think i’ll use the dependency one, we used it before but i just wasn’t sure on how to easily get this in final builder. Thanks again
