How i do for each files in a folder

how do I select each of the files in a directory and do an operation with it such as rename it

Hi @luchovelez,

In order to get all the files in a folder you can check the examples in this post

After that, my idea is to take each file, you can use the For each activity to iterate through the files: Directory.GetFiles(folder_path,“.”,SearchOption.AllDirectories)
Inside the For each, you can get each of the files name: Path.GetFileNameWithoutExtension(file) and use a Replace string activity to rename the files(maybe you can take the new names from an array of strings).

Hope it helps!

2 Likes