How to rename this dynamic file name from this "A 250422" to this "B 250422" for the next day file name is "A 260422" so that I need to convert it into "B 260422"

Please do suggest a method to do this

1 Like

@Gopikrishna_S

Hope you are able to find out the file name. If yes just use replace method to replace A with B.

         InputFile.Replace("A","B")

Here InputFile holds your filename.

Hi @Gopikrishna_S ,

Maybe it is still unclear as to what is to be done, Do you want to Replace A by B or do you want to Update the dates to the current date value ?

Hey @Gopikrishna_S

  1. Get the dynamic file from the folder

  2. Move the file and keep the same destination with new name

  3. Delete the old file

Hope this helps

Thanks
#nK