Where?

 

Home Up

 

 

  Your main file server houses tens of thousands of files spread across a few dozen shares, and Windows provides you with some options, including the Search tool. However, for command line aficionados, nothing beats a handy, small tool to perform the same task.

Enter WHERE.EXE, formerly included in various Windows Resource Kits and now an official part of Windows Server 2003. Note that, if you're running Windows 2000 or Windows XP, WHERE is not included in the OS, so you need to grab it from a resource kit. WHERE is also bundled along with certain versions of Visual Studio.

To get a complete look at what WHERE provides, enter WHERE /? from a command prompt on your server. I'll give you a quick look at some parameters and show you an example. Note that WHERE requires some kind of parameter, whether it’s one of the switches or just a file name.

/R path: Recursively search through the specified folder and all folders beneath; requires you to enter the path.

/T: Shows you the size of each file as well as the most recent modification date; particularly useful if you find multiple files with the same name. Example:
where /T /R c:\ *.bat searches the entire C: drive for every file that has a .BAT extension.

 

 

 

 

 

 

Order a book or two today - you can download an eBook today for only $1.99!

            

Just click on a book to learn more!