Forum Discussion

DevPerera's avatar
DevPerera
Occasional Contributor
10 years ago

How to get sub folder names one by one which are inside a given folder?

Hi All,

 

I just want to get all the sub folder names which is inside a give folder, dont know how to do it?

 

 

..................

Thanks

Dev

  • Hi Dev,

     

    You can use aqFileSystem.GetFolderInfo(path).SubFolders to access a folder's subfolders. Check the example in the Subfolders Property help topic - it does exactly what you need.

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi Dev,

     

    You can use aqFileSystem.GetFolderInfo(path).SubFolders to access a folder's subfolders. Check the example in the Subfolders Property help topic - it does exactly what you need.