 <p>Fetch the root and use </p> <pre><code>qry.ViewAttributes = "Scope='RecursiveAll'"; </code></pre> <p>See also: <a href="http://stackoverflow.com/questions/4192873/query-to-get-all-items-in-a-list-including-items-in-the-sub-folders-in-sharepoin">Query to get all items in a list including items in the sub folders in SharePoint</a></p> <p>And: <a href="http://www.ktskumar.com/blog/2009/07/retrieve-all-folders-from-list/">http://www.ktskumar.com/blog/2009/07/retrieve-all-folders-from-list/</a></p> <p>HTH Alex</p>