Hi guys, I have already posted a thread regarding this but no one has ever shed a light upon it. I want a program that searches for files (.docx, exe, ppt, txt) from all folders. Is this possible i the first place? If yes, then how?
markdean.expres
0
Junior Poster
Recommended Answers
Jump to PostIs this possible i the first place?
Yes it is.
If yes, then how?
Here's a subroutine from my crapbox. The extra features you'll get are: restrict files with file creation date and/or with file size. I was too lazy to take those off, but you can do it by …
Jump to PostAnother non-recursive version with less options.
Uses linq to get the files with the passed in extensions. Button_Click sub shows how to call it. Get files takes a paramarray fileExtensions paramater. Pass in all the extensions to check.
DirectoryInfo.GetFiles has a search all directories option which will do …
All 7 Replies
Teme64
215
Veteran Poster
Unhnd_Exception
markdean.expres
0
Junior Poster
markdean.expres
0
Junior Poster
markdean.expres
0
Junior Poster
codeorder
197
Nearly a Posting Virtuoso
keyboardxtreme
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.