An Easy VB Question with 90 points

I want to make a setup program that will serch the Hard drive for files already installed. I have the install part done, I just need the command to find the files.
R_N_WARDAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JBakerCommented:
you can use the DIR $ function to search through your directories

ex.
Dir$("c:\*.*")

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erick37Commented:
"HOWTO: Search Directories to Find or List Files"
http://support.microsoft.com/support/kb/articles/q185/4/76.asp

"PRB: Search Using OpenFile API Instead of Dir/Dir$ Function"
http://support.microsoft.com/support/kb/articles/q168/5/19.asp
0
JBakerCommented:
If you know the files you are looking for you can do the following:

Dim MyFile, MyPath, MyName
' Returns "WIN.INI"  if it exists.
MyFile = Dir("C:\WINDOWS\WIN.INI")  

The string MyFile will be filled if the file exists.  If it does not exist the string will be null.
0
R_N_WARDAuthor Commented:
Thank you. The Dir$(C:\*.*) command should work fine. Newbe Q> "*.*" is the file I am looking for, right?
0
JBakerCommented:
you can use *.* or the specfic file you are looking for
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.