I have a scenario where we have a folder which has many folder and each folder has a excel file in it
Input here is:
Input file path will be given
It must process the files under the multiple folder in that folder
I have a scenario where we have a folder which has many folder and each folder has a excel file in it
Input here is:
Input file path will be given
It must process the files under the multiple folder in that folder
First get the folders inside the parent folder using Directory.GetFiles and store in a string array @Sweety_Girl,
Then use for loop to loop through the array, within that for loop another directory.getFiles to loop through the each child folder and get the excel file inside. Then process the excel as you need
Hi @Sweety_Girl,
Use like this…
And I have another condition
Inside that folder we must access only particular 6 folders
How to check the folder name whether it is one among the 6 folders
Same thing, just a if condition,
If item.tostring = “Folder Name”
Okay …
We must use OR condition for that 6 folder and use it?
I suppose you could use a Switch activity and place each folder name as a condition for that Switch.
Yes,
If item.tostring = “folder1” or item.tostring = “folder2” or item.tostring = “folder3”
we can use that @Sweety_Girl
If we use switch, the excel files under that particular folder will be added to queue separately
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.