TFS: How can you Undo Checkout of Unmodified files in a batch file
Install Team Foundation Server Power Tools and run the following from the command line using tfpt.exe at the root of your project's workspace directory:
c:\myProject> tfpt uu . /noget /recursive
Including /noget
is highly recommended since it prevents a forced 'get latest' of all your project's files which depending on the total number can take a extremely long time.
Take a look on Undo Unchanged command of the Team Foundation Server Power Tools August 2011
c:\myProject> tfpt uu . /noget /recursive
Thanks Matt Florence for link update.
Thanks Ray Vega for actual syntax.
Thank you @mike & @ray,
I wish to make it easier.
In VS, at Tools menu, click on "External Tools".
Click Add.
Enter title.
Command: tfpt.exe
Arguments: uu . /noget /recursive
Initial Directory: [you can choose from the arrow button].
Two new command are added to Tools menu.
Use them when needed.
Enjoy,
Ofir