Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   Scripting (https://www.kinook.com/Forum/forumdisplay.php?f=35)
-   -   Can the current .bld file be saved from a build? (https://www.kinook.com/Forum/showthread.php?t=245)

kinook 11-17-2003 09:33 AM

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).

http://www.visualbuild.com/Manual/macrostab.htm


Option #2

Add a Run Script step with VBScript code of
Code:

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)

or

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

or

c) Save the modified project to a temporary path:
Code:

If Project.IsModified Then Project.Save "%TEMP%\discard.bld"
http://www.visualbuild.com/Manual/runscript.htm
http://www.visualbuild.com/Manual/objectmodel.htm


All times are GMT -5. The time now is 09:43 AM.


Copyright © 1999-2023 Kinook Software, Inc.