Search for Files in a Range of Dates from Vista's Search Box
Posted by Kevin Purdy at 3:30 AM on February 29, 2008
You know you put that phone number in some file on Monday, but you're drawing a blank as you gaze at your Vista desktop. The How-To Geek offers a solution for those who haven't explored Windows Vista enough to learn the syntax of the Start menu's search box. The syntax for finding an Excel spreadsheet, for example, within a range of dates is:
name:xls modified:2/1/2008..2/20/2008The Geek has, as always, way more information on this technique and a mouse-powered one as well, including the syntax for finding files based on date created or just "date." Got any more Vista-specific search tips for your fellow Lifehacker readers? Feel free to drop them off in the comments.
Tags: files | how to | search | search operators | search techniques | windows vista | windows vista tip

Comments (AU Comments · US Comments)
David Underhill
Posted August 26, 2008 3:08 PM
Thanks, this is great information! Now I can actually figure out what files I modified in the past week :).
Webran61
Posted 4:22 AM 29/2/08
Cool.
It took me about 4 tries to get this to work though. It's a little difficult to tell where there are and aren't spaces in the command.
Webran61
jeffk
Posted 5:31 AM 29/2/08
I was completely stymied by Vista's find. It seemed to find nothing.
Aa test, I created a file "C:\file.txt". Typed "file.txt" into the search box. And Vista couldn't locate it.
This single "feature" stopped me from buying the final product after the pre-release copy expired.
jeffk
Webran61
Posted 5:31 AM 29/2/08
@The How-To Geek:
Exactly what I intend to do when I use this in the future is use the drop-down menus. Just like I said in a previous article here, I prefer the touchpad way more than the keyboard. I know I'm alone on that.
Thanks for this.
Webran61
The How-To Geek
Posted 5:31 AM 29/2/08
@Webran61: The only place you should need a space is between the "name:whatever" and the "modified:daterange" keywords, since they are separate search operators.
You can use spaces between the dates and dots, or not... should work either way. You can even have a space between "modified:" and the date range. You could also just use "modified:1/1/2008" without needing a date range.
Sometimes it's simpler to just use the advanced search and select the date from the drop-down =)
The How-To Geek
J. D. Harper (aka Blog Jones)
Posted 6:21 AM 29/2/08
Jeff: Vista's search feature is more like Google's Desktop Search, where it indexes stuff on your hard drive so it can search faster. If you had checked "search for non-indexed files" or had left your computer idle for a few minutes so that the file would enter the index, it would have found it lickety-split.
Everyone: I recently found a great compendium of all the neat search operators Vista supports, which I found to be *incredibly* useful.
J. D. Harper (aka Blog Jones)
The How-To Geek
Posted 6:21 AM 29/2/08
@Webran61: I'd bet most people prefer to use the mouse, it's only us crazy keyboard ninjas that prefer the keyboard method.
The How-To Geek
The How-To Geek
Posted 8:17 AM 29/2/08
@J. D. Harper (aka Blog Jones): Also, the root of the C:\ drive is probably not being indexed by default, nor should it be.
The How-To Geek