tx1
Programmer
- Apr 30, 2009
- 2
I am writing a map in TX 6.7 that is writing a batch file as an output card. The first time I run the map it builds the batch file correctly but the batch file does not get executed. The second time the map runs it does get executed.
I think the problem is that the actual write of the batch file is not committed so the first time there is nothing to execute. So, next I tried putting the batch file with this rule "=put("file", "batch_name.bat", package(output1))". I then tried executing the batch file in a separate rule "=GET("bat", "-cmd batch_name.bat -TRACE -AUDIT")". Same thing happens.
I think I don't get something. How do I execute the batch file right away?
I think the problem is that the actual write of the batch file is not committed so the first time there is nothing to execute. So, next I tried putting the batch file with this rule "=put("file", "batch_name.bat", package(output1))". I then tried executing the batch file in a separate rule "=GET("bat", "-cmd batch_name.bat -TRACE -AUDIT")". Same thing happens.
I think I don't get something. How do I execute the batch file right away?