I got the code to work it is the way you where eval the log file.
' delete the file if it exists
If vbld_FSO.FileExists(Application.ExpandMacros("%log File%")) Then
MsgBox "Deleting log file '" + "%logFile%" + "' from vbld_BuildStarting event (go to Script Editor, " + _
"Project tab to view script code)."
vbld_FSO.DeleteFile Application.ExpandMacros("%logFile%"), True
MsgBox("Found It, deleted!!!!")
Else
MsgBox("Did not Find It")
End If
|