I am using an active X script as a loop to scan a
directory and bring in files to a DTS package. the
problem I am having is that, if the file is still in the
process of being ftp'd to the directory, the DTS package
fails, instead of moving on to the next available file, or
simply terminating.
I am wokring on the following script, but am uncertain as
to how to direct the statement to take the next file. I
appreciate any help given.
Function DateAccessed
dim fso
dim fil
set fold = fso.Getfolder("R:\Files1\")
for each fil in fold.Files
if DateDiff("s", fil.DateLastAccessed, Now()) <= 1
then
END IF
NEXT
End Function
Thanks
Rocky