Useful TFS commands
Below are TFS commands which may be required on day to day basis. Location of TF.exe is C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE- 1) Finding Difference between local folders to TFS source folder- C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>tf folderdiff "$/pathtotfs" D:\pathtolocalfolder [/recursive] [/noprompt] 2) Getting Code to local folder from TFS- C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>tf get D:\pathtolocalfolder [/force] [/all] [/overwrite] [/recursive] /force is combination of /overwrite and /all. You can also them exclusively if you dont want to get all code again. 3) Deleting a Workspace from TFS server- C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE> tf workspace /delete [/server:tfsservername] workspacename[;owner] [/login:username,[password]]
If you are not sure about workspaces details and workspace details you can easily get those by typing : "tf workspaces [/owner:ownername] [/computer:computername] [/server:servername] [workspacename] [/login:username,[password]]" Anything in [] are optional fields to give. Anyways, you can always refer TFS help by typing > tf /? or you can refer MSDN site itself













