?
Solved

How to scan entire drive using VB

Posted on 1998-12-23
2
Medium Priority
?
281 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 600 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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