capturing batch file output

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
JonShrout
Posts: 11
Joined: Mon May 01, 2006 10:50 pm

capturing batch file output

Post by JonShrout »

I am compiling using a batch file that requires my file name to be split into two strings. Because of this, I am using a lua script to split the file name then execute the batch file (using the os.execute function).

I need to capture the output from the batch file in a document in Zeus. How can I do this?

TIA
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I need to capture the output from the batch file in a document in Zeus. How can I do this?
The page below explains how this can be done using a Zeus macro and the tee utility:To control the Zeus output window uses to display the output document use the file_open, file_open_compiler, file_open_project or file_open_tool Zeus macro functions.

Note: The tee utility used in this macro example is purely optional. If tee is not required just change the command line string to read:

Code: Select all

local cmd = "test.cmd > output.txt"
Cheers Jussi
Post Reply