How to Move files dynamic in For each file activity?

can someone show me example of moving files dynamic with timestamp ?

Hi @Nightowl_music

Could you be more elaborate the query.

Are you asking to rename the moving file. If it Is the question.

  • Assign → FolderPath = “Give your folder path here”
  • Assign → FileName = FolderPath+“/”+CurrentFile.Name.toString+" "+DateTime.Now.toString (“dd/MM/yyy”)+CurrentFile.Extension.

Inside the for each file in folder activity place the above two assigns.

In the Move file activity in the To field pass the FileName variable where we created in second assign activity.

Hope it helps!!

@Nightowl_music

In the to field use this

Path.Combine(FolderPath,Currentfile.Name + Now.ToString("MMddyyyyhhmmss") + currentfile.Extension)

Here folderpath is a variable which contains the destination folder path

This will append the filename with timestamp and move it

Cheers

in which do I write this?

@Nightowl_music

In the to field of move file

Cheers

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