View Single Post
  #4  
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