Solved

How to scan entire drive using VB

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Input past end of file vbs script 9 83
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 43
using web browser with BING 40 111
VB6 ListBox Question 4 34
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

863 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

19 Experts available now in Live!

Get 1:1 Help Now