Folders, Sub Folders Inception

So I have used

Folders = Directory.Directories(“C:\word docs”)

But it has only given me one level of sub folders

C:\word docs\subfolder lvl1

but not

C:\word docs\subfolder lvl1\subfolder lvl2

Solved

Hi @Jersey_Practical_Sho

It would be nice of you if you share the solution in here so people with the same query can find it.

Regards,
Reda

`

Folders = Directory.GetDirectories(“D:\Users\Robin\Documents\Word Automation”,"*",SearchOption.AllDirectories)

`

or for all files

Files = Directory.getfiles(“D:\Users\Robin\Documents\Word Automation”,"*",searchoption.AllDirectories)

4 Likes

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