View Single Post
  #1  
Old 09-27-2012, 12:17 PM
modernrocketry modernrocketry is online now
Registered User
 
Join Date: 04-06-2006
Posts: 19
Rebuild step if it fails via VBScript

I randomly experience a Microsoft VS2010\Windows 7 bug that causes a build to fail with a mt.exe error. It has been acknowledged by MS, but I have not seen a fix yet.

In the meantime, I'd like to work around it.

Is it possible to force a step to rebuild if the error or exitcode equals a certain value?

Something like this?

Sub vbld_StepDone()
If CLng(Application.ExpandMacros("%RUNPROGRAM_EXITCOD E%")) = mt.exe's exist code Then
Step.?????????
End If
End Sub
Reply With Quote