I have one main folder and in it 3 folders with different extensions. I would like it to go through the first folder with different extensions first, then the second, and finally the third. How can I do this
Hi @sullivanne
You can use the For each folder in folder activity.
Inside it Use for each file in folder activity.
In First iteration in For each Folder in folder activity it will get the first subfolder in the main folder.
Then for each file in folder activity iterates the files in the folder.
In Second iteration in For each Folder in folder activity it will get the second subfolder in the main folder.
Then for each file in folder activity iterates the files in the folder.
In Third iteration in For each Folder in folder activity it will get the third subfolder in the main folder.
Then for each file in folder activity iterates the files in the folder.
Hope it helps!!
What do you mean “3 folders with different extensions?” Do you mean the files have 3 different extensions? Are you trying to do all the files with one extension then all the files with another extension, etc?
If so, use a For Each with the extensions list, and inside it a For Each with Directory.GetFiles…
Directory.GetFiles("C:\Main Folder",currentItem,SearchOption.AllDirectories)