Skip to content

Instantly share code, notes, and snippets.

@dieseltravis
Created April 27, 2011 17:14
Show Gist options
  • Save dieseltravis/944714 to your computer and use it in GitHub Desktop.
Save dieseltravis/944714 to your computer and use it in GitHub Desktop.
get changed files from TFS
@echo off
SET tfs=http://YOUR_TFS_SERVER:8080/
:number
ECHO Enter changeset number (0 to exit):
SET /p chg=
IF NOT %chg% GTR 0 GOTO end
"%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" changeset /server:%tfs% %chg% /noprompt
GOTO number
:end
@jeremysimmons
Copy link

@kiquenet tf history will do what you're looking for. Unfortunately, you're going to have to parse the output.
tf history * /version:D"2016-01-01"~D"2016-01-31" /recursive /noprompt /format:detailed
I'd suggest you use the tfs power tool commandlets for this. (sorry, no code example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment