I cannot change the file name with rename file activity

I want to add “CH” and date while keeping the existing filename. but it keeps giving errors. can you help?

Thank you for your support and cooperation.

@ozgur.yukcan

Open advanced editor in new name field and use

"CH"+ currentfile.Name

Cheers

Thansk Anil_G.

The file name that I want is currentfile.Name_CH_dd.MM.yyyy

I cannot delete the .xls extension.

File name: S355900.xls_CH17.11.2024

@ozgur.yukcan

its not good to use dot in filename…so please try below

currentfile.Name.Split("."c)(0) + "_CH_" + Now.ToString("dd_MM_yyyy") + currentfile.Extension

cheers

Thanks a lot Anil_G

1 Like

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