The latest version of The Bat! is available from the Ritlabs website: DOWNLOAD THE BAT!

Author Topic: macro to include the output of an external program?  (Read 3162 times)

Offline sgp

  • Pipistrelle
  • *
  • Posts: 4
macro to include the output of an external program?
« on: March 25, 2003, 07:39:26 AM »
Hello,

is there a macro that can aid in including the output of an external program in a template?

Basically I'd like to be able to specify something like:
-----------
Dear ->%ExecuteExternalProgram="c:progsmyprog.bat -d1"<-
bla bla
-----------
and have it expanded into something like
-----------
Dear ->this text was generated by myprog.bat<-
bla bla
-----------

I realize I could use a %Put="file.txt" macro when file.txt already contains the output text that myprog.bat generated. But in that case how can I start myprog.bat from within TB before the %Put macro is invoked?

 

SMF spam blocked by CleanTalk