Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Frequently Asked Questions > Logging
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 04-08-2003, 08:54 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Master/child project file logging

I have a master project and child projects which all use the same XML log file. I want to delete the log file each time the master project is built, but if I check the application option to delete the log file at the start of the build, it also gets deleted when each child project builds. How can I achieve this capability?

The application option to delete the log file at the start of the build is a global option that affects all builds, so that option should be unchecked in this situation. To delete the log file only at the start of the master project, open the Script Editor and add a script function for the vbld_BuildStarting script event (by clicking the Events button), and add the following code to it:

Code:
vbld_FSO.DeleteFile(vbld_AllMacros().Item("LOGFILE"), True)
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 Off
[IMG] code is Off
HTML code is On



All times are GMT -5. The time now is 12:16 PM.


Copyright © 1999-2023 Kinook Software, Inc.