Skip to content

Instantly share code, notes, and snippets.

@dieseltravis
Created April 27, 2011 17:14
Show Gist options
  • Select an option

  • Save dieseltravis/944714 to your computer and use it in GitHub Desktop.

Select an option

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

Ertavf commented Sep 20, 2013

Copy link
Copy Markdown

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

@kiquenet

kiquenet commented May 5, 2015

Copy link
Copy Markdown

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

@jeremysimmons

Copy link
Copy Markdown

@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