Kinook Software Forum

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

Thread Tools Rate Thread Display Modes
Old 04-08-2003, 09:55 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 6,001
How can I build or skip steps based on the existence of a file or folder?

Define a conditional build rule to build if
is true (replace FileExists with FolderExists to test for folders). When building the project, if the file/folder exists, the rule will evaluate to -1 (True), and the step will be executed, otherwise it will evaluate to 0 and be skipped. To perform steps in both cases ("if" and "else"), use is false for the else condition (see the Advanced.bld sample for a demonstration).
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 08:20 AM.

Copyright 1999-2023 Kinook Software, Inc.