Windows has had a search option for a very long time. The problem that I have with it is two-fold:

  1. It is slow
  2. The indexer is a real
  3. resource hog

So, a long time ago, I learned how to index all of the files on my computer that provides me with accurate results in a fraction of the time. And, the index is completely portable so I can keep a copy of the index on my USB drive so that I can tell my wife exactly where that file is on my computer at home that I need at work.

How exactly is this done? Read on.

Create the Index

The index is really nothing more than a text file listing every single file that is on your computer’s hard drive. To create the index, simple go to a command prompt and type the following:

dir c:\ /s /b>>fileindex.txt

Wait for a couple of seconds and it will be done. If you want to add more hard drives to the index, simply retype the command and change the c: drive letter in the command to the other drive letter you want to index.

Search the Index

The next step is to search the file index for a file you are looking for. Let’s say you are looking for a file with the word “accounting” in it. You would use the following command to get a list of all the files with the work “accounting” in them:

find "accounting" fileindex.txt

You will instantly get the results. No waiting!

Updating the Index

Since it is so quick and easy to build the index, to update the index all you need to do is delete the fileindex.txt file and recreate the index just like you did earlier.

Suggestions

What you may want to do to simplify the process is create a couple of batch files to simplify the process. For example, you could create a batch file called MakeIndex.bat that would delete the fileindex.txt file and then rebuild it with information from all of your hard drives. This file may look something like this:

@echo off
del fileindex.txt
dir c:\ /s /b>>fileindex.txt
dir d:\ /s /b>>fileindex.txt

You could also create a file called WhereIs.bat that will find your files easier for you. It might look something like this:
@echo off
find %1 fileindex.txt

Now, all you would have to type is:

WhereIs "accounting"

This will give you the same results!

If you found this post useful, why don't you buy me a cup of coffee to show your gratitude?