Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Frequently Asked Questions > Scripting

Thread Tools Rate Thread Display Modes
Old 11-17-2003, 09:33 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
Can the current .bld file be saved from a build?

Option #1

Avoid modifying the project from the build (for instance, by modifying global or temporary macros rather than project macros).

Option #2

Add a Run Script step with VBScript code of
If Project.IsModified Then Project.Save
to save any changes to the current project file from within a build.

This will prevent the GUI from prompting to save changes when run from a scheduled task or other automated scenario, and will also save changes made when building via the Console app.

Option #3

To discard any changes made to a project during the build:

a) Use the Console app (any changes to the project will be discarded unless explicitly saved during the build)


b) Specify the /s command-line flag for the GUI app


c) Save the modified project to a temporary path:
If Project.IsModified Then Project.Save "%TEMP%\discard.bld"
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 On

All times are GMT -5. The time now is 10:45 AM.

Copyright 1999-2023 Kinook Software, Inc.