Skip to main content

Precise & Quick Search for Windows Files/Folders with Regular Expressions

I have a lot of music files, take a lot of digital pictures and save a lot of webpages locally on my computers and have had trouble looking for a right file or folder when hundreds or thousands of them are accumulated on the hard drive.

Apple iTunes has helped me a lot on music and PDF files and I have had less trouble looking for a right one when I need it. iTunes is now my favorite tools to manage my music library and the PDF-based research papers.

I don't prefer to use software like ACDSee, which I believe use the same principle as the "iTunes Music Library", to manage my picture library because it's not practical to store all pictures locally on a hard drive as I normally take pictures in RAW format, the size of which is typically 6 megabyte each. I need to archive them to DVD discs from time to time to free up the space of my hard drive, even though now it's 200GB in size.

What I usually do with my files or folders naming convention is that I try to put a lot of meaningful keywords in its name so that it could be easy to look for later on. When I need to archive the files on to a CD or DVD, I use a CD/DVD cataloging software to make a catalog of the files and folders on the CD or DVD and store it as a text file (which of couse could be XML-formatted file) on my hard drive for later searches.

Modern file-management utilities in Windows such as Total Commander (a software inspired by the famous Norton Commander back in the DOS days 10+ years ago) and PowerGREP provide a nice search feature that allows us to search for a file/folder name or for a text content inside a file by either using simple string-matching search or a more sophisticated and powerful regular-expression (RegEx) search. I have been getting very good search results with my file naming and cataloging practice and the regex seaches. It usually take me less than a few minutes to get a right file/folder from so many archive CDs and DVDs, and I get the right file/folder almost instantly if they are stored locally on the hard drive.

The current Microsoft Windows XP operating system doesn't have a powerful file metadata mangement system like Spotlight on Apple's Mac OS X Tiger and the long-anticipated metadata-rich WinFS from Microsoft hasn't yet arrived.

The practice that I've been using (and, as always, have been improving) might be useful for you. Please feel free to share with me your idea/technique if you like!

Resources on Regular Expressions:
Wikipedia: Introduction to Regular Expressions
Regular Expressions Reference - Basic Syntax

Keywords: , , , ,

Comments

Popular posts from this blog

A Thought on a Reasoner-enabled Version of Del.icio.us (and perhaps Technorati)

I have been adding more bookmarks to my del.icio.us account and have begun tagging them with RDF-like object/datatype properties. Adding more and more object/datatype properties to the bookmark, a provoking thought popped up: It would be nice if tagging can be assisted by ontologies and a logic reasoner. Look at del.icio.us/thitiv . The _hasAffilication:CUPhoto property should be a subproperty of _hasAffiliation:Chula (provided that CUPhoto stands for Chula Photo Club .) Also, aticles on 'tagging' are subclass of articles on 'metadata'. But articles on 'metadata' are not essentially the articles on 'tagging'. 'Friends' versus 'people' is also another example. Bookmarks about my friends are of course bookmarks about people. But not all the people I know or found on the Internet (through search engines) are my friends. Ontology-assisted tagging sounds promising to solve this problem. In principle, this problem is partly related to...

Tips: Mac OS X: Full ANSI Color Support in Terminal.app

I'm trying to switch my Java development platform from Windows XP to Mac OS X Tiger. Wondering how to colorize the Terminal screen, I spent some time googling. From the discussions at the end of this page: macosxhints.com - Add full ANSI color support to Terminal.app Here's a summary of how to enable it: With bash shell as default, simply add export TERM=xterm-color [I prefer this for Linux compatibility] or export TERM=dtterm in the ~/.profile (single-user) or /etc/profile (system-wide) Color terminal is enabled. Use ' ls -G ' (the -G enables color output) to test. Add alias ls='ls -G' in the profile file for convenience. Keywords: mac-os-x , unix , terminal , shell , tips

Tip: Converting a CSV File into XML by Excel

I came across a problem to convert a historical data in comma-separated format (CSV) into a modern & more useful XML format. There are many ways to do such conversion. The most obvious one is to do it programmatically by writing a program to read CSV data and exporting it to an XML file by means of the Simple API for XML (SAX) or the Document Object Model (DOM) libraries. But I was too lazy to do it. I knew that Microsoft Excel 2003 supports exporting worksheets into XML data. I tried it out but found that it is not that simple -- we have to define an XML schema and bind each element to each column of the worksheet. So I went on researching. Finally, I found a very useful tool on MSDN: Excel 2003 XML Tools Add-in Version 1.1 ( download ). The Excel Add-in's "XML Tools -> Convert a Range to an XML List" menu command allows us to simply select a range in a worksheet (with or without first row as column names) -- with the advanced options to specify the XML root ...