Geeks With Blogs
Jeff Paterno's Blog

I just ran into a scenario where I couldn't find a file in it's expected directory.

I took the next logical step and ran a typical search using Windows Explorer. Unfortunately this search turned up no results.

I then found out about the WHERE utility in the Visual Studio 2008 Command Prompt. Using this utility I was able to display all possible locations of the file on my machine based on a search pattern.

Here's what you do:

  1. Start -> Programs -> Microsoft Visual Studio 2008 -> Visual Studio Tools -> Visual Studio 2008 Command Prompt
  2. Type where [search pattern for the files to match]

Hope that helps!

Posted on Thursday, February 4, 2010 1:35 PM | Back to top


Comments on this post: Searching for Files Using the Visual Studio 2008 Command Prompt

# re: Searching for Files Using the Visual Studio 2008 Command Prompt
Requesting Gravatar...
This is an interesting problem. After you found out where the file was, did you try searching it from Windows Explorer again? Wonder why it didn't show up in the first place.

This is a great hint. I personally do not like windows search and is always looking for alternatives.
Left by LifeLongTechie on Feb 04, 2010 2:25 PM

# re: Searching for Files Using the Visual Studio 2008 Command Prompt
Requesting Gravatar...
This works from cmd as well
Left by Dave on Feb 04, 2010 10:54 PM

Your comment:
 (will show your gravatar)


Copyright © Jeff Paterno | Powered by: GeeksWithBlogs.net