bro did same but giving the same error as I mentioned above. It seems everything is fine. Please see the above error bro
This is the error
Buddy you cannot send a directory as a file path input so what we can do is i want to know what is the output of get files first, so lets just use a writeline activity to see what is the output we get simple
inside the for each loop use a writeline activity with input as item.tostring and lets see what is coming up as output
Cheers buddy lets sort this out, we are almost done @balkishan
@Palaniyappan yes bro, I want this, so how to save this in a particular folder bro. Bro if you see here this file is in the first folder of Export. and the file name is extracted_information.csv, But the same file name will be in the next folder…so how can we save, do we need to use timestamp here?
You can save this in a particular folder by just using move activity, by mentioning the source filepath as this (item) and the destination path that you want
no NEED to have timestamp as the path will be varying if its going to be from another folder buddy
Cheers @balkishan
@Palaniyappan See bro, We need to create a timestamp, because 1st file is copied when come to the second file it says that can’t create file because same name file is existing in the folder.
So, you can use assign activity to create a timestamp (timeStamp = DateTime.Now.ToString()) and in move file activity you have the source from and to path where you want to move it put destination path an insert timeStamp in front of the file format, i.e. something like finalPath = , and to destination, you can write: finalPath.Insert(finalPath.LastIndexOf(“.”),timeStamp).
Buddy with the file name we can just concatenate the datetime as string like budy
path.GetFileNameWithoutExtension(yourpathinstring)+Datetime.Now.Tostring(“dd-MM-yyyy hh:mm tt”)
Simple buddy @balkishan
Try and let know buddy and lets sort this out today
Cheers @balkishan
Really?
If you have fileName = myFile.xlsx, you wil get string myFile.xlsx14-05-2019…,won’t you?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.