Team Foundation Server is arguably one of the best source code control systems. Despite its feature abundance, it lacks a file search capability from the user interface. There are two ways to search for a file in TFS. One of them requires getting the latest from the particular branch and then searching for a file on the local machine. Not knowing which branch may contain the file renders this approach impractical. Downloading all the files located on TFS may take too much time and space. A better approach is to use the “tf” command. Here is an example:
C:\Program Files\Microsoft Visual Studio 9.0\VC>tf dir "$/MyTFSRoot/Branch1/SearchFileName.ext" /recursive /server:http://ServerName:8080
We opened the Visual Studio command prompt first.
The “tf” command is a TFS command.
The “dir” command will list all files whose name matches “SearchFileName.ext” and is located under “$MyTFSRoot/Branch1” folder and all its sub-folders on TFS server named “ServerName” using port “8080”.
It seems that TFS user interface still has to catch up functionality wise to its command line capabilities.