| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.