Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file execution

Status
Not open for further replies.

tx1

Programmer
Joined
Apr 30, 2009
Messages
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?




 
Write the file in one map and use a second map to run it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top