Copy with the access file

Hi Guys,

i need the BOT to copy the photos from folder to another how ever i need to copy only the updated photos i think i can differentiate between the photos with the access date so how can i do this?

Hi,

The following expression get files which is modified or created in 1 hours. Does this work for you?

System.IO.Directory.GetFiles("yourFilePath").Where(Function(f) System.IO.File.GetLastWriteTime(f) > Now.AddHours(-1)).ToArray()

Regards,

in which step i should inject your step as i tried to put it in assign activity but it didn’t work

image

Hi,

If you use the above expression, workflow will be as the following.

Or, if you want to use ForEachFileInFolder, the following will help you.

Regards,