Solved

How to scan entire drive using VB

Posted on 1998-12-23
2
269 Views
Last Modified: 2010-05-03
I want to scan my entire C: drive (or any other drive), including all folders or subdirectories for an specific file type.  I am doing that already with the following code, but I am limited to only one folder that I can select:

Last = -1
    Image = Dir(DirSelect & "*.ICO")
    While Image <> ""
      Last = Last + 1
      If Last >= 0 Then frmImage.lstFileName.AddItem Image
      Image = Dir
    Wend

-----------

DirSelect = PATH

------------

Maybe an API will do it??

Jose
0
Comment
Question by:p1jar3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
vmano earned 200 total points
ID: 1452260
check out this MSDN article: Q185476. URL is:
http://support.microsoft.com/support/kb/articles/q185/4/76.asp?FR=0 

let me know if this helps
vmano
0
 

Author Comment

by:p1jar3
ID: 1452261
The information provided is very valuable.  I don't want to reject the question just because I have not test the code, but reading it looks like it will do what I need.


0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question