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

iTunes: Error 261 while Burning Data CDs/DVDs

Apple Discussions: 261 error while burning MP3 CD. I usually put an aphostrophe (') in the name of playlists and was having error 261 burning CD/DVD data discs since iTunes 5.1. Upgrading to iTunes 6.0 for Windows doesn't help. I was burning a music DVD this morning and had Error 261 again. So I went to Apple iTunes Discussions site and look for a thread on this. Viola! There are many people having the same problem as mine. The thread ends at a point where someone removing ampersands, the '&' symbols, from their playlists and could avoid this error. I tried removing aphostrophes from the name of my playlist because aphostrophe falls into the kind of non-alphabet characters that needs escaping in some programming languages. It works!! Keywords: itunes , windows

Microsoft Office Outlook Connector 12.1 Beta 2 Crashes Thai Language Input in Outlook 2007

It's been more than a year since I last blogged. I've been busy with work and also don't know what to blog. Here comes my new findings: Microsoft Office Outlook Connector 12.1 Beta 2 + Outlook 2007 + Thai Language Input = CRASH This has also been proven here . I downloaded the Outlook Connector the other night for improved supports to Windows Live Hotmail -- only to find that whenever I start typing e-mails in Thai, i.e., hit the "language switch" key Outlook simply crashes! I googled for " outlook 2007 crash language switch " this morning and find someone having the same Outlook Connector insta.led and the same problem as mine. So, Outlook Connector is most likely the cause of trouble. I uninstalled Outlook Connector this morning and, yes, typing in Thai doesn't crash Outlook 2007 anymore! Keywords: Outlook , Thailand , Troubleshooting

MPICH2: mpdboot failure due to conflicting /etc/hosts entry

One single line in the /etc/hosts file on my Ubuntu Linux machine wasted my precious whole afternoon. I had some assumptions about the cause of this problem but I don't want to spend too much time investigating on what really caused the trouble. Anyway, here are the listings of what worked and what didn't: /etc/hostname ubuntu mpd.hosts.cluster master worker-01 Bad /etc/hosts 127.0.0.1 localhost localhost.localdomain ubuntu 192.168.200.128 master 192.168.200.129 worker-01 Result thitiv@ubuntu:~$ mpdboot -n 2 -f mpd.hosts.cluster thitiv@master's password: mpdboot_ubuntu (handle_mpd_output 359): failed to ping mpd on master; recvd output={} Good /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.200.128 ubuntu master 192.168.200.129 worker-01 Result thitiv@ubuntu:~$ mpdboot -n 2 -f mpd.hosts.cluster thitiv@worker-01's password: thitiv@ubuntu:~$ At this point, with the /etc/hosts now fixed, the MPICH2 cluster could be booted up successfully. I don't want t...