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 05-11-2004, 07:19 PM
grusu grusu is online now
Registered User
 
Join Date: 05-11-2004
Posts: 1
Capture particular step's output

Is it possible to capture a particular step's output and use that output later in the build? Perhapsh using vbld_StepDone()?

Specifically, I am running a VSS History and would like to attach that output as a separate file to an email that also contains the entire build log already.
Reply With Quote
  #2  
Old 05-12-2004, 07:35 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Sure. The step's output is available in the LASTSTEP_OUTPUT system macro and is populated by the time the vbld_StepDone event fires. To write it to a file for attaching to a mail message, you could use something like this

vbld_FSO().CreateTextFile("c:\history.txt").Write Application.ExpandMacros("%LASTSTEP_OUTPUT%")

Or to store in a temporary macro for use later in the build:

Application.Macros(vbldMacroTemporary).Add "HISTORY_OUTPUT", Application.Macros(vbldMacroSystem)("LASTSTEP_OUTP UT")
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 12:17 AM.


Copyright © 1999-2023 Kinook Software, Inc.