Loop a process for each CSV file that is in a share

Hi,

My current predicament is that I have a process that for each CSV file existing in a share, validates the file and if it's ok, then should call a synchronization project. After the import is done, the file should be moved into a processed folder and then start all over again with the next file from the share.

Is it possible to loop a process like that? If not, then how can this functionality be achieved?

Thanks in advance!

Parents
  • One way is to use standard .NET libraries in a script to get a list of all the files in a share, then using that in the same script iterate over it and raise an event for each file. The event will trigger a process which does the validations, sync and moving of the file. You can pass the full file location to the event as a parameter which might come in handy for archiving.

Reply
  • One way is to use standard .NET libraries in a script to get a list of all the files in a share, then using that in the same script iterate over it and raise an event for each file. The event will trigger a process which does the validations, sync and moving of the file. You can pass the full file location to the event as a parameter which might come in handy for archiving.

Children