1
vote
Vote UpVote

Solution for Delphi – post-build event with multiple if/copy combinations only execute if first file does not exist – Stack Overflow

The Wiert Corner – My solution in [WayBack] delphi – post-build event with multiple if/copy combinations only execute if first file does not exist – Stack Overflow is an addendum to my 2014 post Delphi prebuild/prelink/postbuild events. Here we go: Q Given the bin\ directory inside the Delphi project contains the files Cert.pem and Key.pem, the below Delphi post-build event only copies both files if C:\Binaries\Cert.pem does not exist: if not exist $(OUTPUTDIR)Cert.pem (copy bin\Cert.pem $(OUTPUTDIR)) if not exist $(OUTPUTDIR)Key.pem (copy bin\Key.pem $(OUTPUTDIR)) As soon as C:\Binaries\Cert.pem ...
Favorite? Off-Topic? jpluimers @ 2018-11-15 18:05

Statistics

Visits: 136
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)