View Single Post
  #3  
Old 03-27-2013, 04:10 PM
BetaLaserMike BetaLaserMike is online now
Registered User
 
Join Date: 03-04-2013
Posts: 2
where do I put the FileExists

I would like to 'fail' the build if a file exists. I thought I could place the vbld_FSO.FileExists as a step and it would return 0 as a failed condition, but that did not work. How do I (or where do I) put something like:
if vbld_FSO.FileExists(".\BuildStarted") then
// continue build everything ok
else
// stop the build with a Failure condition...Previous build not completed since the
// file exists.
return 0
end if

I'm sure this is an easy question, I just do not know enough about the Visual build product.

Thanks.
Reply With Quote