Discussion › Forums › discussion › Launch multiple programs through one tool?
This topic contains 0 voices and has 5 replies.
| Author | Posts |
|---|---|
| Author | Posts |
| January 16, 2009 at 6:39 am #519 | |
|
Zetty Member
|
Not much else to add. I am starting to learn Flex and after it compiles my stuff, I’d love for it to try and launch the resulting .swf file without me needing to push another button! |
| January 19, 2009 at 11:59 am #16192 | |
|
simon Key Master
|
Hi, this is most easily done by creating a batch file that runs your two programs, e.g.
Call the batch file with all the properties you need from Programmer’s Notepad, and they’ll be in the batch file as %1, %2, … |
| February 8, 2009 at 9:55 am #16193 | |
|
Karmaflute Member
|
It would be convenient if PN passed the tool command to a hidden command prompt instead. Then we can use fancy stuff like && to do this: "g++ somefile.cpp && out.exe" where out.exe is only run if compilation is successful. |
| February 16, 2009 at 6:25 am #16194 | |
|
max Member
|
Hi everyone , I made a tiny program for PN to run several tools at a time here is the readme file: pnbuilder you can use this program to run several tools at a time. the tools you need to run have to be config in config.ini usage: pnbuilder FullFilePath WorkPath [ProjectName] the symbols used in the config file are similar to PN : %f > file name eg. abc.c %F > file name with full path eg. abcabc.c
%n > file name no ext eg. abc %d > file path eg. abc
%p > project name %D > current work path the configuration is simple, for example: in my config.ini, I wrote: [1] exe= param=%F [2] exe= param=%d%n.obj to %d%n [3] exe= param=%d%n if I use this command to launch pnbuilder: pnbuilder the following command will be launch in
if no error and wanning found,the following command will be launch:
and again if no error and wanning found,the following command will be launch:
sorry for my poor English and hope this tiny program can help you max 16/2/2009 you can download it here http://www.levelspace.net/up_files/upload/pnbuilder.zip hope you like it. |
| February 18, 2009 at 6:33 am #16195 | |
|
Karmaflute Member
|
Thanks, max. Would you mind providing the source code as well? |
| February 19, 2009 at 4:02 am #16196 | |
|
max Member
|
here is the code,in delphi Code:
program pnbuilder;
{$APPTYPE CONSOLE} uses var if CreatePipe(hReadPipe, hWritePipe, @lsa, 0) = false then repeat while (true) do ph[cchReadBuffer] := chr(0); end. |
You must be logged in to reply to this topic.
abcabc.c