Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 03-11-2004, 09: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.

Reply With Quote
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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 03:30 AM.

Copyright 1999-2019 Kinook Software, Inc.