1 out of 10 rated this helpful Rate this topic

Command-Line Exit Codes

The Team Foundation source control command-line utility tf provides exit codes that indicate the level of success for a command.

Exit Codes

The following command-line exit codes are defined for tf.exe.

Exit Code Definition

0

Success.

1

Partial success; this means at least something, or possibly everything, failed to succeed.

2

Unrecognized command.

100

Nothing succeeded.

Example

In order to check out two files, you might type the following command at the command-line:

tf checkout foo.cs bar.cs

If one of the files you are trying to check out does not exist on the server, you are returned 1 for partial success.

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Need examples for TFS command line exit codes
In msdn help I can see the exit codes, but like to know how to use the return code? Please give some examples on how to use the exit codes. $0$0 $0 $0I just found that I can do this by echo $? in linux environment.$0 $0$0 $0 $0Thanks.$0