The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 716 other subscribers

Some more tf.exe related batch files for managing workspaces – via: Find an installed tf.exe, then run it with the command-line parameters specified. « The Wiert Corner

Posted by jpluimers on 2016/01/28

As part of some TFS related posts, I wrote about Find an installed tf.exe, then run it with the command-line parameters specified.

Below are some more batch files related to this. In each batch file, you can replace tf with call "%~dp0tf.bat" so the above batch file is executed first.

Finding your workspaces and their mappings:

tf workspaces /owner:%USERNAME% /computer:* /format:detailed

This is based on an example from Workspaces Command:

tf workspaces /computer:* /format:detailed

Unlike you would expect, this does list some workspaces, but not from everyone.

If you want workspaces from everyone, then you need this command, but be prepared for a truckload of output:

tf workspaces /owner:* /computer:* /format:detailed

Less output, but no mappings by omitting the format (so it defaults to /format:brief):

tf workspaces /owner:* /computer:*

via

 

–jeroen

Leave a Comment