Solved

How can I list every document on a hard drive in Excel or Access?

Posted on 2009-07-15
7
392 Views
Last Modified: 2013-11-28
I have a hard drive with thousands of documents on it (in folders and sub folders).  Is there any way I can create an Excel list or Access datatabase so I can see the document titles?  I want to do this so I can compare it to another list I already have to see what documents are missing.  
   
0
Comment
Question by:matthewjp
  • 3
  • 3
7 Comments
 

Expert Comment

by:TheCaptainjs
ID: 24862175
open up Windows Search (Windows key + F)
Go to advanced or all files and folders
Change the Location or Look In to be the hard drive you are looking in
for the search term/ all or part of the file name enter: *.xls, *.mdb, *.xlsx, *.accdb
0
 

Author Comment

by:matthewjp
ID: 24863050
Thanks, I can get a list of names doing it this way - but can't copy and paste it into Access or Excel.  
Is this possible?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 24866765
matthewjp,

Try this.

Copy the DB and the Batch file to you c:\ directory.
Rename the batch File : ListAllFiles.bat
Open the db and click the form button.

Notes.
This is code I pieced togeter in a hurry.  It can definitely be optimized. (or even done entirely in VBA)

Issues:
The code will fail if the List file is not "Fully" written to the disk.  So I added a message box to tell the user to wait a while.
You may get an error table, because some on the filenames are longer than 255 characters.

I am sure you can take it from here...


JeffCoachman
Accesss-EEQ-24573148-list-all-fi.zip
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:matthewjp
ID: 24870910
Hi jeff,
  I tried to extract the files, but it says it's password protected.  
Thanks,
Matt
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24872569
I just tried downloding and extracting the file(s) from a remote location, and it downloaded and extracted without issue.
Try downloading the file again.

Here it is again in any event...
Accesss-EEQ-24573148-list-all-fi.zip
0
 

Author Comment

by:matthewjp
ID: 24873991
I really appriciate the help!  
It worked great!!  I did have to run the batch file manually first, then remove that part of the code from Access but after that I got exaclty what I needed.  Thanks so much!!!!  
You did a great service to your country (since I work for the gov't)  : )
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24884044
OK, I'll try to clean it up a bit this weekend and post it again
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

685 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