Using Active X Scripts
1.You may want to first check if the file exists
Code:
'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************
Function Main()
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("<path to your file or server>")
If objFile.Size >0 Then
main = DTSTaskExecResult_success
else
main = DTSTaskExecResult_failure
end if
End Function
2.On failure end task
3.On success continue with next task
4. Schedule your DTS Package accordingly.
Jaime E. Maccou