Instead of bloating his system with a fancy information gathering tool, reader Scott decided to take it really old-school—he created a batch file database to store frequently accessed information.
Using Scott’s database works much the same as our founding editor’s Todo.txt command-line utility—except this one is geared at storing and retrieving tiny bits of information, so it only has two actions: add or search.
You’ll start out by creating a new batch file named f.bat using the following script, adjusting the path to the notes.txt file to the location on your system—you can even store the whole thing on a flash drive that can be easily carried around from system to system.
if (%1)==(-add) goto add
if not (%1)==() goto find
echo %2 >> F:notes.txt
find /i “%1” F:notes.txt
echo USAGE: f keyword
echo f -add “some string of data”
Once you’ve got that all hooked up, you can add new entries to the list with the -add parameter:
f -add “My pizza place number: 703-555-8888”
Once you’ve added your data to the file, you can search for it later by simply typing:
If you really wanted to get geeky with it, you could hook the batch file into Launchy to add new entries quickly on the fly, and add a Pause command into the :FIND block so it wouldn’t disappear right away—so you can easily lookup notes, phone numbers, or anything you want to store in no time flat. Great job, Scott!
FAST Command-Line Database [rad89.com]