General Development

How to do a Directory Search for a file using VB.NET? – DeathFox

DeathFox
Member

Posts: 57
From:
Registered: 04-25-2006
Like how do I make a function that has an explorer-like searcher to search for a file. Thanks
dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
recursively search a specified directory for files and directories...

for each directory, search for files and directories...
for each file check if it's the one your after...

------------------
Junior Programmer www.auran.com
Quality Assurance Lead www.rebelplanetcreations.com

DeathFox
Member

Posts: 57
From:
Registered: 04-25-2006
I mean like those of YouTube where you can find videos to upload from your Hard Drive
Lazarus

Member

Posts: 1668
From: USA
Registered: 06-06-2006
Then it depends on what language you're using. With C++ there are functions you can call from the windows dlls to open a File dialog box.
HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
I think he's asking about how to use the Common Dialog Box from within VB.Net.

Here's a link to a good explanation of some of the different dialogs that are available to you from VB.Net, as well as sample code that shows you how to use them.

Hope that helps!

--clint

dartsman

Member

Posts: 484
From: Queensland, Australia
Registered: 03-16-2006
:| random...

from 'Directory Search' to a 'Common Dialog Box' :| I'm astonished....

------------------
Junior Programmer www.auran.com
Quality Assurance Lead www.rebelplanetcreations.com

HanClinto

Administrator

Posts: 1828
From: Indiana
Registered: 10-11-2004
quote:
Originally posted by dartsman:
\from 'Directory Search' to a 'Common Dialog Box' :| I'm astonished....

Yeah, I could see that (especially just looking at the topic), but he *did* say "explorer style search" in the body of his post, and if you substitute "navigation" for "search", it's really not too far of a stretch to see that what he said could make sense, especially if he had no idea what to call it. "File search" makes more sense than "common dialog box" if you don't know the name (and if he knew the name, he wouldn't have to post on a forum for it, he could just Google for it).