Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-15-2003, 05:15 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-19-2003
Location: Dunedin, New Zealand
Posts: 114
put something like the following in a script step:

if (! FileExists (Application.FindMacro ("DIRVAR").Value + "\\" + Application.FindMacro ("FIRSTVAR").Value))
throw "failure"

The Application.FindMacro bit avoids the \ problem.
Note that this assumes that you are using JScript. Something similar works for VBScript but the throw becomes:

Err.Raise 1, Step.Name, "Forcing build failure..."
Reply With Quote
Reply

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 06:59 PM.


Copyright © 1999-2023 Kinook Software, Inc.