views:

40

answers:

1

I would like to be able to search for a folder by name within a user's files in C#. The reason for this is to enable a process which utilizes two applications that are otherwise not communicating with one another. (The process is essentially a file hand off, and the applications cannot communicate as one is a proprietary app). If this is possible, any ideas or best practices would be much appreciated.

Thanks,

badPanda

+1  A: 

Start at root (or the root where this directory might be found) with System.IO.DirectoryInfo. Call GetDirectories to get all of the directories within this directory. Call GetDirectories recursively and compare to your desired name until you find it.

MCain