I have downloaded two sheets i.e,
1.7166a12c-4d74-4073-87a4-321b63d7758a-canada.csv
2.7166a12c-4d74-4073-87a4-321b63d7758a-united_states.csv
I need to move the files to another folder. The problem here is, whenever I download the file, the name of the downloaded file will be changed. So I need to change the files with respect to names. How can I move the files?
Someone help me in solving this.
Fine
hope these steps would helpyou resolve thiis
–use a assign activity like this arr_filepath = Directory.GetFiles(“yourfolderpath”,“*.csv”)
where arr_filepath is a variable of type array of string
–now use a FOR EACH activity and pass the above variable as input and change the type argument as string in the property panel of for each loop
–inside the loop use a MOVE FILE activity where in the path property mention as item.tostring
and in the destination mention the path as “yourfolderpath\”+Path.GetFilenamewithoutextension(item.tostring)+“yournewname”+“.csv”
Scenario
1.Use Assignactivity and set the variable to String of array.
2.Use foreach to iterate with in the files in the folder.
3.Then create string variable for the input properties in the movefile
4.Then Create string variable for the destination and new name of the file.