Solved

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

Posted on 2009-07-15
7
388 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:matthewjp
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
OK, I'll try to clean it up a bit this weekend and post it again
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

771 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

11 Experts available now in Live!

Get 1:1 Help Now