Skip to content

Instantly share code, notes, and snippets.

@dieseltravis
Created April 27, 2011 17:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@Ertavf
Copy link

Ertavf commented Sep 20, 2013

thanks,
for any other for 64 bit Windows users: %ProgramFiles(x86)% is the right path

@kiquenet
Copy link

kiquenet commented May 5, 2015

How get all files from all changeset by date (from date1 to date2) ?

@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