Welcome to MSDN Blogs Sign in | Join | Help

TFS 2008: Command line help for tf.exe now prints to the console

In TFS 2005 running help from tf.exe popped up the MSDN help browser.  That was a bit lame, but we didn't allocate the time to do it right.  That's been fixed in TFS 2008.

Running tf.exe /? produces a list of commands, and tf someCommand /? produces detailed help on that command.

Here are a couple of examples.  These two commands are also new in TFS 2008.

D:\>tf destroy /?
TF - Team Foundation Version Control Tool
Copyright (c) Microsoft Corporation.  All rights reserved.

Destroys, or permanently deletes, version-controlled items from Team
Foundation version control.

tf destroy [/keephistory] itemspec1 [;versionspec]
           [itemspec2...itemspecN] [/stopat:versionspec] [/preview]
           [/startcleanup] [/noprompt]

Versionspec:
    Date/Time         Dmm/dd/yyyy
                      or any .Net Framework-supported format
                      or any of the date formats of the local machine
    Changeset number  Cnnnnnn
    Label             Llabelname
    Latest version    T
    Workspace         Wworkspacename;workspaceowner

D:\>tf folderdiff /?
TF - Team Foundation Version Control Tool
Copyright (c) Microsoft Corporation.  All rights reserved.

Displays a visual representation of the differences between files in two server
folders, in a server folder and a local folder, or in two local folders.

tf folderdiff [sourcePath] targetPath [/recursive] [/noprompt]
              [/server:serverName:port] [/filter:filter]
              [/filterLocalPathsOnly]
              [/view:same,different,sourceOnly,targetOnly]

Published Friday, August 03, 2007 1:00 PM by buckh

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: TFS 2008: Command line help for tf.exe now prints to the console

I think I speak for many, many people when I say "HOORAY!" :) I'd been waiting for this one...

Friday, August 03, 2007 3:13 PM by CRathjen

# re: TFS 2008: Command line help for tf.exe now prints to the console

+1 "Hoorah!". I can't count the number of times I've gone tf.exe command /?... then gone "damn!" when I wait for MSDN help to start.

Saturday, August 04, 2007 9:20 PM by Grant

# VSTS Links - 08/09/2007

Buck Hodges on TFS 2008: Command line help for tf.exe now prints to the console. Jason Prickett on TFS...

Thursday, August 09, 2007 10:37 AM by Team System News

# re: TFS 2008: Command line help for tf.exe now prints to the console

Yes, double plus good

Thursday, August 09, 2007 8:15 PM by Mark

# re: TFS 2008: Command line help for tf.exe now prints to the console

Would there be a patch for TFS 2005 by any chance?  You know, a quick-and-dirty utility to update this?

Thursday, August 23, 2007 10:24 AM by posty

# re: TFS 2008: Command line help for tf.exe now prints to the console

Unfortunately, there is not.  You could try contacting customer support and requesting a patch (there is not one in existence currently).

Buck

Thursday, August 23, 2007 10:33 PM by buckh

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker