Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-11-2004, 10:24 AM
mvermeulen mvermeulen is online now
Registered User
 
Join Date: 07-15-2003
Posts: 56
Send a message via Yahoo to mvermeulen
Appending Files

Is there a function or macro that will append the "contents" of one file to another? I would like to create a seperate file that will contain the output of certain steps, manipulate the file and then append it to the log.

Thanks!
Reply With Quote
  #2  
Old 03-11-2004, 05:50 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.