Rename files from a folder

Hi! I want to know how to rename files from a folder using “For each file in a folder” activity and using “Rename File” inside the loop “For each file in a folder”. ¿Is it possible? Thanks.

@Sergio_Vargas

Welcome to the community

It is possible…

In the rename folder activity

Use currentFile.FullName in the file field

And in new name field …provide the new name…but make sure to use a unique name like either a counter or something

Cheers

1 Like

Hi @Sergio_Vargas
Yes, Try This once

  1. Configure the “For Each File in a Folder” activity to specify the folder path you want to work with.
  2. Inside the loop, drag and drop a “Rename File” activity.
  3. Configure the “Rename File” activity with the source file path and the new file name.
  4. Ensure that you place the “Rename File” activity inside the loop, so it iterates through each file in the folder and renames them one by one.
  5. You can use variables or expressions to generate new file names dynamically, if needed.

Thank you

HI @Sergio_Vargas ,
You need rename multiple files?
You can assign new name each loop
regards