Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-07-15
7
Medium Priority
?
397 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
[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
  • 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 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

721 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