Project Manager Delphi 2007 vs Delphi 5

I am in the midst of moving from Delphi 5 to Delphi 2007.  I have a .BAT file that I use to do some post processing on the executable after it is built.  In Delphi 5, I just added the .BAT file to the project manager.  Then when I wanted to execute the .BAT file I just right clicked its entry in the project manager and selected Execute.  

There doesn't seem to be anyway to add the .BAT file to the project manager in Delphi 2007.  How can I set up something similar to what I had in Delphi 5?  I thought about using a Post Build event but I don't necessarily want to execute the .BAT file every time I compile the project, just when I am finished making changes and am satisfied with the result.

Any suggestions?
0
Stephen
12/16/2009 4:43:17 PM
📁 embarcadero.delphi.ide
📃 3925 articles.
⭐ 0 followers.

💬 6 Replies
👁️‍🗨️ 1607 Views

Stephen Boyd wrote:

> I am in the midst of moving from Delphi 5 to Delphi 2007.  I have a
> .BAT file that I use to do some post processing on the executable
> after it is built.  In Delphi 5, I just added the .BAT file to the
> project manager.  Then when I wanted to execute the .BAT file I just
> right clicked its entry in the project manager and selected Execute.
> 
> There doesn't seem to be anyway to add the .BAT file to the project
> manager in Delphi 2007.  How can I set up something similar to what I
> had in Delphi 5?  I thought about using a Post Build event but I
> don't necessarily want to execute the .BAT file every time I compile
> the project, just when I am finished making changes and am satisfied
> with the result.
> 
I usually add such command files to the Tools menu.


-- 
Peter Below (TeamB)  
Don't be a vampire (http://slash7.com/pages/vampires), 
use the newsgroup archives :
http://codenewsfast.com
http://groups.google.com
0
Peter
12/16/2009 6:39:52 PM
Stephen Boyd wrote:

> There doesn't seem to be anyway to add the .BAT file to the project
> manager in Delphi 2007.

Can't you just right click on the project, select theh *.BAT file, and
add it?

-- 
Nick Hodges
Delphi Development Manager
Embarcadero Technologies
0
Nick
12/16/2009 7:12:20 PM
> {quote:title=Nick Hodges wrote:}{quote}
> 
> Can't you just right click on the project, select theh *.BAT file, and
> add it?
> 

Yes, but I don't see how that does me any good.  I can't execute the .BAT file by right clicking or in any other way that I am aware of.
0
Stephen
12/16/2009 8:28:37 PM
> {quote:title=Peter Below wrote:}{quote}

> I usually add such command files to the Tools menu.
> 

That was too simple for me to think of.  That seems like a workable option.  I am going to end up with quite a collection of these but it will still be better than having to go to a command prompt to do it.

Thanks
0
Stephen
12/16/2009 8:47:02 PM
> {quote:title=Stephen Boyd wrote:}{quote}
> That was too simple for me to think of.  That seems like a workable option.  I am going to end up with quite a collection of these but it will still be better than having to go to a command prompt to do it.
> 

You did see the macros you can use with the Tools items, right? You could write 1 batch file that accepted parameters, and pass things like $PATH, $NAME, $PROJECT, $EXENAME, etc., and did  whatever it needed for the current project based on those parameters. The $PROMPT macro might be of use, also. :-)
0
Ken
12/16/2009 9:54:36 PM
Stephen Boyd wrote:

> Yes, but I don't see how that does me any good.  I can't execute the
> .BAT file by right clicking or in any other way that I am aware of.

Ahh, okay.  

I never knew that you could even do that.  

I'd recommend the tools menu.

-- 
Nick Hodges
Delphi Development Manager
Embarcadero Technologies
0
Nick
12/16/2009 10:29:28 PM