Hello RPA legends. I’m looking to create a sequence that loops through all the files in a folder and extract any .txt files and move them to a folder on an FTP.
Any tips would be greatly appreciated.
Thanks!
Hello RPA legends. I’m looking to create a sequence that loops through all the files in a folder and extract any .txt files and move them to a folder on an FTP.
Any tips would be greatly appreciated.
Thanks!
Assign, str[] files = Directory.getFiles(“Folderpath”,“*.txt”)
Above expression will give all .txt files in a folder and then use For each activity to iterate it and use Move File activity to move files.
@Gavin_Mcmaster After downloading zip file from Here change .doc to .txt and use move file activity
@lakshman Can you please send me a screenshot? I can’t get the assign to work.
Thanks. Can you spot what I’ve done wrong? What is the variable type?
I said to create string array variable but you created string variable. please check below.
Your requirement can implement in very easy way.
Reference my process attached below.
Beware my variable type!
Don’t forget to mark as solution if this one can help you.
Thanks,
Sequence1.xaml (8.7 KB)
Ah, sorry. I didn’t see your comment below the image.
Ok. No problem. Is the issue resolved now or not ?
If you face any issues then please let me know.
Sorry, still not working…
Directory Get Files.xaml (6.6 KB)
I checked your workflow and found some mistakes.
Please find the attached workflow.
Directory Get Files.xaml (5.8 KB)
Thanks @lakshman
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.