' ' Example script for 2BrightSparks SyncBackPro that ignores ' any source file not modified yesterday. ' ' SBLang=VBScript ' ' http://www.2BrightSparks.com/ ' ' ' This is a runtime script ' Function Description(ScriptType) Description = "Ignores any source files not modified yesterday. Not used on Restore." ScriptType = 2 End Function Sub RunBeforeFileCompare(Filename, ByRef Skip) ' Ignore if this is a Restore If SBRunning.Restore then Exit Sub End If YesterdayDate = Date - 1 YesterdatStr = CStr(Year(YesterdayDate)) & CStr(Month(YesterdayDate)) & CStr(Day(YesterdayDate)) FileDate = SBRunning.GetFileDateTime(Filename, TRUE) FileStr = CStr(Year(FileDate)) & CStr(Month(FileDate)) & CStr(Day(FileDate)) If FileStr = YesterdatStr then Skip = FALSE Else Skip = TRUE End If End Sub