There is the easy way and there is the right way.Either way you will write a script to do it.You can find all .html (or what ever type of file you generate) and run iwregen on each. That may not give the expected results in all cases but works out pretty well. Sometimes parameters may be needed for iw_ostream or other functions that will not be provided by iwregenThe correct way is to traverse the templatedata folder, get a DCR, calulate the generated file name and PT and then run iwpt_compile. Then submit all generated pages. After that, write a new step to your workflow that will generate the output of a DCR that was submitted and include it. The next time you need to do this, submit the DCRs and go have lunch. If you write script #2, that will become the basis for the new external task.
The "correct" way assumes that there is a pre-ordained (also "correct") logic behind the relationship of the name and path of the DCR and its associated output file. If you let your users randomly name DCRs and output files - you pretty much have to use the first method described.However, the first method suffers if the process used to generate the pages was customized, and uses iwpt_compile.ipl without setting the EAs on the output file. If this is the case - and you don't have a "correct" relationship between DCR and output file - you're pretty much SOL.