I need to read copy attachements from a different folders to one folder

Hi ,
I need to copy the attachments from different folders to one folder.here the main issue is all the attachments are having the same file name.
can someone help me.

can you try like this move the file with new naming conversion.

can u tell me the steps to do

Actually i want to copy the attachements from a 4 differnt folders, and that folders are in one main folder.

I will tell u what i have done
1)assign actvity using getdirectories
image
2)for each item in the folder and i need to copy to new folder.

can u tell me after this what i should do.

Hi , if you need to move the file to new folder every time , if all these folders are inside any main folder

Then before you use for each loop
pls create a String Array
And Use assign
StringArray = Directory.getdirectories(“Main directory path”)
Create a Int32 variable ex:Counter and give default value as 0

Now inside the for each loop at move file activity’s Destination file path property give value as StringArray(Counter)
and below to the move file
Use assign activity
Assign
Counter = counter+1

@Karthik_Kulkarni

Just try the below code in Move File activity “Destination” section
Path.Combine(< YourDestinationFolderPath>,“< filename>_”+Now.ToString(“ddMMyy hhmmss”)

Above code will move the file to the format “Filename_ddMMyy hhmmss”

I misunderstood the requirement

Then before you use for each loop
pls create a String Array
And Use assign
StringArray = Directory.getdirectories(“Main directory path”)
Create a Int32 variable ex:Counter and give default value as 0

Now inside your first for each
Create another for each and set argument type as string
For each of Directory.getfiles(StringArray(Counter))

Now use move file activity
The source property value should be given as Item
And destination property should be given as
Path.Combine(YourDestinationFolderPath, filename+Now.ToString(“ddMMyy hhmmss”)