폴더 내 반복작업 / Repeated operations

스타라는 폴더명 안에 다수의 폴더가 존재할 경우 특정 워크플로우를 폴더마다 반복하도록 하고 싶어요. 어떻게 구현하면 될까요?!

If there are many folders in the folder name Star, I would like to have a specific workflow repeat for each folder. How do we implement this?!

Hi @sooyeon_Lim

→ Use the Assign activity to set the parent folder path to a variable. For ex, you can assign the path C:\ParentFolder\Star to a variable called parentFolderPath.

→ Use Directory.GetDirectories to retrieve all folders within the parent folder. Store the result in an array variable, let’s say folderPaths.

folderPaths = Directory.GetDirectories(parentFolderPath)

→ Add a For Each activity to iterate over each folder path in folderPaths. Set the TypeArgument property to String.

→ Within the For Each loop, place the workflow that you want to repeat for each folder. You can use the current folder path variable (like currentFolderPath) in the loop to access the specific folder being processed.

Hope this helps,
Best Regards.