Rename File With Get Folder Name


Hi everyone
What if I want to add the name and date listed in the sub folder name, (example in the image : 7-9) the current month and year in each file?

Hi @samarasenja

Use/concatenate “Now.tostring(“MMMM_yyyy”)” at the end of your folder name in your activity

Regards,
Vasanth

Thanks,
but how about the date taken from the folder name?

@samarasenja

You can use YourFolderPath+Now.ToString(“yyyy”).ToString+""+Now.ToString(“MMMM”).ToString

image

Like this inside year folder you get each month as well

Hope this helps
Cheers,

hi @samarasenja

You can use GetFolderInfo Activity to get the Name of that particular folder and then concatenate with the file name,

image

Regards,
Vasanth Kumar

Thank you , this Case is solved

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