I usually receive 10 files daily and I would like to check if those 10 files exists. If any of the files missing then I would like to send an email with the missing file name. I know how to do this for one file but not sure I can do this for multiple files. I wrote the below vb.net code for a single file.
If (File.Exists(CStr(Dts.Variables("fileLoc").Value))) Then
Dts.TaskResult = Dts.Results.Success
Else
Dts.TaskResult = Dts.Results.Failure
Can someone please share an example on how I can do this for multiple files and send the missing file name? Thanks for the help
↧