Write folder names and path to datatable

Hello,

I have a main folder under which i have folders and sub folders.

I want to write each folder, sub folders names and folders paths in datatable under columns Name and path respectively.

Note i want this is datatable and not in excel.

@mihir.s.bandodkar

Use build datatable activity and add two columns of string type name and path

Use for each folder in folder activity and select include sub folders option

Now use a add datarow activity with {currentfolder.Name,currentfolder.FullName} as arrayrow

Cheers

Hello @mihir.s.bandodkar

Here is the sample code for your reference.
Foldernames.zip (9.0 KB)

Happy Automation :slight_smile:
Thanks.

hi @mihir.s.bandodkar ,

This might help!
writeDirectories.xaml (7.8 KB)

Thanks,
Aditya

Thanks so much

Thanks a lot

Please mark the topic as solution.
That might help others who are looking for something just like this!

Thanks

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