Monday, June 9, 2014

TFS command line to display who checked out files, find file

tf status to show who checked out

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>
tf status $/ /user:* /recursive > e:\MyPendingCheckouts.txt /s:"http://YourTFSServerName:8080/tfs/YourCollectionName"

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC> you have to open and VS command line

/user:*   you need * to show all users

 e:\MyPendingCheckouts.txt is the file to contain all outputs.

/s:"http://YourTFSServerName:8080/tfs/YourCollectionName" showing the source of TFS

tf dir /recursive $/
you can pass in the item you are searching for also e.g.
tf dir /recursive $/*.cs
gets all the .cs files in all team projects


if you see error below:
http://stackoverflow.com/questions/13358244/tf-exe-history-getting-unable-to-determine-the-source-control-server

You need to add yellow highight to your command
/s:"http://YourTFSServerName:8080/tfs/YourCollectionName"



No comments:

Post a Comment