Reach the folders

  • Thread starter Thread starter begum
  • Start date Start date
B

begum

Hi everybody;

It's me again :). We have folders and that folders has another
folders. We want toread all te text files in that folders. We can only
reach main folder and second subfolder.How can we reach lower-level
subfolders.We try to write a loop function bu we didn't. Can anybody
help us.?

Thanks;
 
Hi begum,

b> We want toread all te text files in that folders. We can
b> only reach main folder and second subfolder.How can we reach
b> lower-level subfolders.

That should work: Directory.GetFiles("C:\\SOME_DIR", "*.txt", SearchOption.AllDirectories)
(except access protected folders)

Kind Regards, Alex Meleta
[TechBlog] http://devkids.blogspot.com



b> Hi everybody;
b>
b> It's me again :). We have folders and that folders has another
b> folders. We want toread all te text files in that folders. We can
b> only reach main folder and second subfolder.How can we reach
b> lower-level subfolders.We try to write a loop function bu we didn't.
b> Can anybody help us.?
b>
b> Thanks;
b>
 
Hi begum,

b> We want toread all te text files in that folders. We can
b> only reach main folder and second subfolder.How can we reach
b> lower-level subfolders.

That should work: Directory.GetFiles("C:\\SOME_DIR", "*.txt", SearchOption.AllDirectories)
(except access protected folders)

Kind Regards, Alex Meleta
[TechBlog]http://devkids.blogspot.com

b> Hi everybody;
b>
b> It's me again :). We have folders and that folders has another
b> folders. We want toread all te text files in that folders. We can
b> only reach main folder and second subfolder.How can we reach
b> lower-level subfolders.We try to write a loop function bu we didn't.
b> Can anybody help us.?
b>
b> Thanks;
b>

Thanks for your help it wil work perfectly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top