craign
08-10-2005, 09:20 AM
I've been using Project script code that I'm pretty sure I sliced out of one of the examples, to search for the existence of a log file and delete it if it exists. Anyway it worked great and then stopped. I've had to comment it out and make sure that I physically delete it prior to the build.
' delete the file if it exists
'If vbld_FSO.FileExists(logFile) Then
'MsgBox "Deleting log file '" + logFile + "' from vbld_BuildStarting event (go to Script Editor, " + _
'"Project tab to view script code)."
' vbld_FSO.DeleteFile logFile, True
'End If
Any ideas?
-CN
' delete the file if it exists
'If vbld_FSO.FileExists(logFile) Then
'MsgBox "Deleting log file '" + logFile + "' from vbld_BuildStarting event (go to Script Editor, " + _
'"Project tab to view script code)."
' vbld_FSO.DeleteFile logFile, True
'End If
Any ideas?
-CN