Need workaround for post-build event bug

This is a discussion on Need workaround for post-build event bug within the Delphi forums in Programming Languages category; If I put two lines into post-build events I expect them to be executed one after another. But that isn't what happens. Instead, it looks like the whole text of the list box is passed to the command processor as a single command, embedded CR/LFs and all, which then of course fails. Am I wrong to expect it to execute the events line-by-line instead of all at once? I can put the lines in a batch file, of course, but that seems to defeat the object... -- Paul Keating The Hague...

Go Back   Application Development Forum > Programming Languages > Delphi

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-06-2008, 04:30 PM
Paul Keating
Guest
 
Default Need workaround for post-build event bug

If I put two lines into post-build events I expect them to be executed one
after another.

But that isn't what happens. Instead, it looks like the whole text of the
list box is passed to the command processor as a single command, embedded
CR/LFs and all, which then of course fails. Am I wrong to expect it to
execute the events line-by-line instead of all at once?

I can put the lines in a batch file, of course, but that seems to defeat the
object...

--
Paul Keating
The Hague




Reply With Quote
  #2  
Old 08-06-2008, 08:55 PM
Rob Kennedy
Guest
 
Default Re: Need workaround for post-build event bug

Paul Keating wrote:
> If I put two lines into post-build events I expect them to be executed one
> after another.
>
> But that isn't what happens. Instead, it looks like the whole text of the
> list box is passed to the command processor as a single command, embedded
> CR/LFs and all, which then of course fails. Am I wrong to expect it to
> execute the events line-by-line instead of all at once?
>
> I can put the lines in a batch file, of course, but that seems to defeat the
> object...


Only if the object is to execute multiple commands. If the object is to
execute one command, then it seems to be working perfectly, except that
you're giving it a nonsense command.

Your subject line says you want a workaround. Your message body says you
already have one.

I don't know how Delphi invokes the post-build commands. If it uses
cmd.exe, then you might try separating your commands with "&&" as you
would if you wanted to invoke them both at the command prompt.

--
Rob
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.