Solved

Scan Text files

Posted on 2000-04-21
3
129 Views
Last Modified: 2012-05-04
Hi can some one tell me or point me to the right place to find some code Ok what i want to do is scan all my computer and find were Text files are and them addthem to a list box with there paths. I hope some one can help me thanks

sorry I ant got many points to offer
0
Comment
Question by:dreamvb
3 Comments
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
http://www.mvps.org/btmtz/drvscan/

look there for good file search program.  it will take a little tweeking to get it to do what you want however
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 18 total points
Comment Utility
SHELL "C:\COMMAND.COM /C DIR C:\*.TXT /S /B /ON /-P > C:\X"

(wait for command to complete or use ExecCmd)

List1.Clear
FileID = FreeFile
Open "C:\X" for input as #fileID
  Do While not EOF(FileID)
  Line Input #FileID, Txt
  List1.Additem Txt
  Loop
Close #FileID

This will give you a sorted list of all .TXT files on your C: drive including their paths in your list box. It's quick and dirty but saves literally pages of VB API code.

M
0
 
LVL 4

Author Comment

by:dreamvb
Comment Utility
Thanks just what I was looking for
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

Suggested Solutions

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

16 Experts available now in Live!

Get 1:1 Help Now