Thread: Appending Files
View Single Post
  #2  
Old 03-11-2004, 04:50 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
If I understand your request, I would recommend this:

1) use script to append the log output of each step you desire to a file, in the step's vbld_StepDone event using the vbld_FSO com object.
2) add a step to manipulate the file (using script or whatever you want to update it to the format you want to add to your log)
3) use a Log Message action to add the contents of the manipulated file to the log

Some vb code you can use to append the contents of one file to another is:

vbld_FSO.OpenTextFile("File1", ForAppending, True).Write vbld_FSO.OpenTextFile("File2", ForReading).ReadAll

Where "File1" is the dest file, "File2" is the source file
Reply With Quote