Redirecting TFS Command Output to Files
Today I discovered that you can redirect the output of Team Foundation Service's tf.exe command to a file. I thought that because it displayed dialog boxes as the results of commands that you couldn't redirect its output to files. However, commands such as tf history will do just that when you specify redirection, such as:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\TF.exe" history * /recursive > history.txt
Of course, if your Visual Studio directory is in your PATH, then you can just specify "tf history...".