3

I have a folder let say (Main folder), which could have sub folders based on the employee id ex ( 67,68,78,92.. etc) which means that employee 67,68, 78 and 92 has uploaded some excel files to their folder. How can I loop through all sub folders and their files one by one.

In the beginning, I have only main folder. I am not aware that which employee is going to upload how many excel sheet for a particular month.

enter image description here

1 Answer 1

11

You need to use the "Foreach Loop Container". When you double-click it, go to "Collection" and choose the "Foreach File Enumerator". Once you do that, it will ask for the folder that contains the files, here you have to choose your Main folder. Then you need to check the "Traverse subfolders" checkbox and that should do it.

Looping over files with the Foreach Loop

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.