Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   File Processing (http://www.kinook.com/Forum/forumdisplay.php?f=21)
-   -   How can I build or skip steps based on the existence of a file or folder? (http://www.kinook.com/Forum/showthread.php?t=46)

kinook 04-08-2003 08:55 AM

How can I build or skip steps based on the existence of a file or folder?
 
Define a conditional build rule to build if
Code:

[vbld_FSO.FileExists("C:\Path\To\File.ext")]
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).


All times are GMT -5. The time now is 06:05 AM.


Copyright 1999-2019 Kinook Software, Inc.