Jump to content
Macro Express Forums

sak

Members
  • Posts

    2
  • Joined

  • Last visited

sak's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi , I gave an example of robohelp, but this is true with any macro called from the batch file. Basically when I execute any macro from a batch file the control goes back to the batch file as soon as meproc executes and does not wait till the macro is fully executed. Another example ( entry in aa.bat): meproc /F%R1BUILD%\robohelp.mex /Amacro_term /B /EN meproc /F%R1BUILD%\robohelp.mex /Amacro_term /B /EN The first macro just opens notepad and closes it . The next runs the build. When i call aa.bat both the macros are started simultaneous . The second macro does not wait for the first one to be completed. If someone is calling multiple macros from a windows batch file please let me know. -Safder
  2. Hello, I have recently started evaluating macro express for our documentation build automation. Our docs are built as a part of the main product build. Most of the components are built using make and for doc which is in "Robohelp HTML" we use a macro which basically simulates the build from the robohelp gui since RoboHelp HTML does not have a command line build option for XPJ project files. The issue we are having is that the macro passes back the control to the next command in the build batch file almost immediately after starting the macro and does not wait for all the commands to be executed. This creates a problem for build logging since all the build processes write to a single build log file. Example of batch file nmake # Builds Visual Studio project meproc /F%R1BUILD%\robohelp.mex /Amacro_term /B /EN # MAcro for robohelp RunEslBatch # Frame Script for building framemaker project. First nmake runs and when complete passes control to the macro which executes and immediately passes control back to the batch file which start the nexct commnd - RunEslBatch ,and now I have 2 build processes running simultaneously. Is there a way to make the maco not pass control back to the batch file till is completed ( Error or Success ). I have tried adding the macro command to another batch file and calling that batch file from the first one and I even tried the start /wait windows command but none seem to work. I hope this forum can provide me some ideas on how to accomplish this. In the build I have may commands which start GUI's like Framemaker and Powerbuilder . but they all pass control to the next commnd in the batch file only after they have completed execution. Thanks
×
×
  • Create New...