View Single Post
  #1  
Old 08-10-2005, 09:20 AM
craign craign is online now
Registered User
 
Join Date: 03-30-2005
Location: Canada
Posts: 1
Project VBScript Stopped working

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
Reply With Quote