how to find file's path according to filename?

Posted by Phsika on Stack Overflow See other posts from Stack Overflow or by Phsika
Published on 2010-05-05T07:30:23Z Indexed on 2010/05/05 7:38 UTC
Read the original article Hit count: 141

how to find file's path according to filename? i need to find file's path according to file name sample code:

string path=      System.IO.Directory.GetDirectories(@"c:\", "kategori",System.IO.SearchOption.AllDirectories).First();

But i need :

string path=      System.IO.Directory.GetDirectories(@"anyFolder", "kategori",System.IO.SearchOption.AllDirectories).First();

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual