Rename an excel file without moving the file

How do I rename an existing excel file without using Move File activity as i do not need multiple of the same file in a folder.

Please take note that I have multiple files in the folder. I just need to rename the excel file :slight_smile: thank you!

1 Like

@zefang

Use below expression in Invoke Code activity.

FileSystem.Rename(“oldFilePath”,“newFilePath”)

5 Likes

it works! thank you!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.