'Echo' text to an ascii text file.
ArborX


Summary
The first macro shown below opens a new text file with the words 'WORK RECORD' on line 1. The second macro adds details , using the DOS echo command.

Another use for the shell macro in this form can be to 'echo' text to an ascii text file. This could be useful if you need to keep track of, for instance, the time spent on a particular project and need to keep a record of your hours; or, more ambitiously, to send data from a Arbortext APP script to a database or billing system.

The first macro shown below opens a new text file with the words 'WORK RECORD' on line 1. Note that any file of the same name will be overwritten:

 !! echo WORK RECORD >c:/3d/mytime.txt

You could then add details, using the DOS echo command with two >> characters:

 !! echo Corrections to text file, 5hrs >>c:/3d/mytime.txt

The text file would now contain two lines as shown below:

 WORK RECORD 8
 Corrections to text file, 5hrs 10

Document created on 08-Feb-2003 (revision 1)