mkrisz
asked on
search files by keyword/wildcard in csharp
Dear experts,
I would like to write just a really small console application which searches for files (like when you search in windows explorer) by keyword. Can I somehow use the built in search capabilities in Windows? Because I already found a code to do file search, but that code only search that particular directory WITHOUT subdirectories :(
I would need two output: the name of the file and the path of the file. Just these two.
Thank you a lot for your help,
Chris
I would like to write just a really small console application which searches for files (like when you search in windows explorer) by keyword. Can I somehow use the built in search capabilities in Windows? Because I already found a code to do file search, but that code only search that particular directory WITHOUT subdirectories :(
I would need two output: the name of the file and the path of the file. Just these two.
Thank you a lot for your help,
Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I meant "features" not "futures"... :)
ASKER
ok.
foreach (string f in Result)
{
string PathName = System.IO.Path.GetDirector
string FileName = System.IO.Path.GetFileName
}