Finding all files within a heirarchy of directories

Discussion in 'ASP.NET 2.0' started by juliaw, Mar 8, 2007.

  1. Hi,
    I usually develop in .NET 2.0 and so am using this forum, I apologise if this is the wrong place to be asking this problem.
    I'm trying to find a list of files, using pattern matching (e.g. *.txt) in a heirarchy of directories, using only one command,
    I have found:


    system.io.GetFileSystemInfos(searchString)


    but this only gets the files and directories within a particular directory,


    Does anyone know a method that will do what I want?


    Thank you in anticipation


    Julia
     

Share This Page