How to Rename file name from folder

Can anyone please advice how to rename the file in specific folder.
The file will name not fixed also the file will download without extension.
In the specific folder there will be only one file which i need to rename.


Activity Name :Invoke Method
Target Type : Microsoft.visualbasic.filesysytem

MehtodName :Rename

Go to Properties of Invoke method

1- in value string – “oldFilename.CSV”
2- In value string – “newFilename.CSV”

1 Like

Get the file name first and then use Rename .
filename = Directory.GetFiles(folderpath)(0)

More info here on GetFiles -

Karthik Byggari

Hello, thnx for reply.

I already tried this, but i am not able to set the Parameters into that.
Also my file don’t have any extension like CSV or xls.

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