I need to append date and time to the file name dynamically while using the move activity

Good Day Experts,

I need to append date and time to the file name dynamically while using the move activity.

To

DestinationFolder+path.GetFileName(SourceFolder)

I need something like this.

DestinationFolder+path.GetFileName+(now.tostring(“dd.MM.yyyy”))(SourceFolder)

I get the following error.

image

Need your support.

@manjesh_kumar,

Can you try with below?

DestinationFolder+Path.GetFileNameWithoutExtension(SourceFolder)+"_"+Now.ToString(“dd.MM.yyyy”)+".txt"

2 Likes

Hello Pankaj,
great that did not thrown an error.
I want the extension to be dynamic and not static.

Regards,
Manjesh

1 Like

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