There is a main folder called - Main_Folder
inside Main_Folder are multiple sub folders called -Sub_folder_1 , Sub_folder_2, Sub_folder_3…Sub_folder_50
There are multiple files in those Sub_folders as well.
How can I read all the files from the Main_Folder (i.e read all the multiple files in the multiple subfolders)
I’ll try and repair the dependency.
But isn’t there any method that can be used along with System.IO.Directory.GetFiles(specified path with some value here)
which reads all the contents in the specified path?
for this we have to give all the path to the sub folders,
isn’t there any method where we can give the path till the main folder and use some manipulations for it to read the files in all the sub folders?
The sub folders are numbered as Sub_folder_1, Sub_folder_2,…Sub_folder_n
But in the for each loop the bot doesn’t picks it up accordingly in the numbered sequence.
It picks up Sub_folder_1 first, then it can pick Sub_folder_12, and so on.
So you want that it should pick up the subfolder in sequence or not ??
When i run the same workflow here it is picking up in sequence only. Thats why i put the message box to see which folder is currently going on.
And if you are saying that After Picking Sub_folder_1 it picks Sub_folder_12 directly just bcz initially der is “1” so you have to rename those 1 to 9 folders as 01,02,… So on.
I haven’t tested it with more than 6 subfolders so i didn’t recognise that. If such thing is happen that after Subfolder1 it directly picks Subfolder12 then you must rename 1 to 9 folders as subfolder01, subfolder02, and so on till Subfolder09
May i know what actually you want as output and what you are facing now ??