FOLDER FILES GETTING DOUBT

I am having folder = “C:\Users\Downloads\RPA”. like this ,

in inthis folder i am having 5 CSV files with different name .

I have to get all the files from that above specified folder - and i need one by one file for looping to do operation HOW Do to anyone help pls.

@BHUVAN

Use for each file in folder qctivity and currentfile.fullname will give the path…inside loop perform your actions

Or

Directory.getfiles(“folderpath”) will give you array of giles and loop through all of them using for loop

Cheers

1 Like

Hi Bhuvan,

You can use ‘for each file in folder’ activity.

1 Like

Thank you so much bro

Thank you @Anil_G :dizzy:

1 Like

Hi @BHUVAN

Here is the solution !!

Regards
Naman

1 Like

If this helps you, then please mark this as the solution to close the thread.

Happy Automation :slight_smile:

I have one more doubt @Ashutosh.Gupta
i am having 5 files above i mentioned , but i have to loop first added file first and second added file to loop second in that I mentioned folder how to put down condition

Just change the “ORDER BY” section as per your need.
In this case, you can update “Order by” => “CREATE DATE OLDEST FIRST” to get the oldest file in the folder.

Cheers :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.