Solved

How to scan entire drive using VB

Posted on 1998-12-23
2
233 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now