Can I iterate through each file in a directory?

I have a directory with a number of xls files in. I would like to iterate through each and then delete once processed OR if the import fails move the file to a sub folder named 'Failed'. How can I go about doing this?

1 comment

Please sign in to leave a comment.